Created
September 12, 2014 08:27
-
-
Save indirect/fdde40aedd2e28272149 to your computer and use it in GitHub Desktop.
clone a github repo and then cd into it
This file contains 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
# clone a github repo and then cd into it | |
function gc { | |
local repo=${1#*github.com/} | |
git clone "$repo" "$HOME/src/$repo" | |
cd "$HOME/src/$repo" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment