Skip to content

Instantly share code, notes, and snippets.

@pugson
Created August 7, 2019 18:57
Show Gist options
  • Save pugson/f0cd44dc357a22d93bc308ab56dbc5ce to your computer and use it in GitHub Desktop.
Save pugson/f0cd44dc357a22d93bc308ab56dbc5ce to your computer and use it in GitHub Desktop.
Clone a git repo and cd into it afterwards
gcd() {
git clone "$1" && cd "$(basename "$1" .git)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment