#!/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}"