Skip to content

Instantly share code, notes, and snippets.

@dev4dev dev4dev/gist:4656536

Created Jan 28, 2013
What would you like to do?
newgit shell command
function newgit() {
if [[ ! -d "$1" ]]; then
mkdir $1 && cd $_ && git init && touch && git aa && git ci -m Initial
echo 'ERROR: such directory already exists.'
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.