A quicker Mkdir and git init
Idea borrowed from @xtagon:
function mdgit() {
mkdir -pv $1 && cd $1 && git init
}
Create a directory and initialize a blank git repo within it
Written by Shrayas Rajagopal
Related protips
1 Response
Same as
function mdgit() {
git init $1 && cd $1
}
For me it is more straightforward to run git init a/be/repo
and cd !$
without extra command
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#