Skip to content

Instantly share code, notes, and snippets.

@dev4dev dev4dev/gist:4656536
Created Jan 28, 2013

Embed
What would you like to do?
newgit shell command
function newgit() {
if [[ ! -d "$1" ]]; then
mkdir $1 && cd $_ && git init && touch README.md && git aa && git ci -m Initial
else
echo 'ERROR: such directory already exists.'
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.