Skip to content

Instantly share code, notes, and snippets.

@pugson
Created July 3, 2019 21:20
Show Gist options
  • Save pugson/02acff74396bde4eaebd58229c9fc799 to your computer and use it in GitHub Desktop.
Save pugson/02acff74396bde4eaebd58229c9fc799 to your computer and use it in GitHub Desktop.
Git clone and cd into the directory after
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