diff options
Diffstat (limited to 'git-set-desc')
-rwxr-xr-x | git-set-desc | 11 |
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 |