summary refs log tree commit diff
path: root/git-set-desc
diff options
context:
space:
mode:
Diffstat (limited to 'git-set-desc')
-rwxr-xr-xgit-set-desc11
1 files changed, 11 insertions, 0 deletions
diff --git a/git-set-desc b/git-set-desc
new file mode 100755
index 0000000..bb35695
--- /dev/null
+++ b/git-set-desc
@@ -0,0 +1,11 @@
+#! /usr/bin/env bash
+#
+# usage:
+# enter repo description into .git/description and run:
+# git set-desc 
+#
+# script written by Akshay and seen on
+# <https://peppe.rs/posts/self-hosting_git/>
+
+remote=$(git remote get-url --push origin)
+scp .git/description "$remote/description"
\ No newline at end of file