Created
January 7, 2012 18:17
-
-
Save jblanche/1575544 to your computer and use it in GitHub Desktop.
awesome alias for new git projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # gitdir : mkdir, cd to it, init git, create initial empty commit | |
| # usage gitdir projectName | |
| function gitdir() { | |
| mkdir -p "$1" && cd "$1" && git init && git commit --allow-empty -m 'initial commit'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment