diff options
Diffstat (limited to 'scripts/origin')
| -rwxr-xr-x | scripts/origin | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/origin b/scripts/origin new file mode 100755 index 0000000..ae67999 --- /dev/null +++ b/scripts/origin @@ -0,0 +1,12 @@ +#!/bin/sh +dir=${PWD##*/} +dir=${dir:-/} + +git remote add origin git@git.sr.ht:~pml68/"$dir" +echo "* text=auto eol=lf + +# Older git versions try to fix line endings on images, this prevents it. +*.png binary +*.jpg binary +*.ico binary" > .gitattributes +git config --add push.pushOption visibility="${1:-public}" |
