Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/sh
- # Makes repository with name passed as first arg
- # Vars
- repo=$1
- base="/home/git/repos"
- echo "making repo with name ${repo}"
- # Make repo directory
- rdir="${base}/${repo}.git"
- mkdir ${rdir}
- cd ${rdir}
- # Make bare repo
- git init --bare
- # Add remote
- git remote add origin git@DATA-SERVER:${rdir}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement