Skip to content

Instantly share code, notes, and snippets.

@indirect
Created September 12, 2014 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indirect/fdde40aedd2e28272149 to your computer and use it in GitHub Desktop.
Save indirect/fdde40aedd2e28272149 to your computer and use it in GitHub Desktop.
clone a github repo and then cd into it
# 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