]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/newgit
bin/git-amend: Smarter 'git stash' handling
[dotfiles.git] / bin / newgit
1 #!/bin/bash
2 # Usage: newgit path/to project-name.git"
3 # Create a new bare git respository
4
5 if [ -z $1 ]; then
6 echo "usage: $FUNCNAME path/to project-name.git"
7 else
8 gitdir="$1/$2"
9 mkdir $gitdir
10 pushd $gitdir
11 git --bare init
12 git --bare update-server-info
13 mv hooks/post-update.sample hooks/post-update
14 chmod a+x hooks/post-update
15 touch git-daemon-export-ok
16 popd
17 fi
18