]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/newgit
.bashrc: Move extra homebrew config from .shenv-aether into .bashrc
[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"
9 mkdir $gitdir
10 pushd $gitdir > /dev/null
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 > /dev/null
17 fi
18