Created
August 7, 2019 18:57
-
-
Save pugson/f0cd44dc357a22d93bc308ab56dbc5ce to your computer and use it in GitHub Desktop.
Clone a git repo and cd into it afterwards
This file contains hidden or 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
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