Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (6 sloc) 182 Bytes
#!/bin/bash
SERVER=$1
PATHNAME=$2
ssh $SERVER "mkdir $PATHNAME; GIT_DIR=$PATHNAME git init"
git remote add $3 git+ssh://$SERVER$PATHNAME
git push origin master:refs/heads/master