summary refs log tree commit diff
path: root/git-set-desc
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2023-11-23 14:15:40 -0600
committergennyble <gen@nyble.dev>2023-11-23 14:15:40 -0600
commitc5111b3482bd867e13b1d835c9779765dff73d4f (patch)
treeb95662e34012e26cd9a3c536466908a0a7d2d193 /git-set-desc
download🌦-c5111b3482bd867e13b1d835c9779765dff73d4f.tar.gz
🌦-c5111b3482bd867e13b1d835c9779765dff73d4f.zip
init :)
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