#!/bin/sh dir=${PWD##*/} dir=${dir:-/} ssh git@server create "$dir" git remote add origin git@git.pml68.dev:repos/"$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