aboutsummaryrefslogtreecommitdiff
path: root/scripts/origin
blob: ae67999b23a6524fde360fde7d3e2bf7f81ab179 (plain)
1
2
3
4
5
6
7
8
9
10
11
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}"