DEV Community

Discussion on: Your favorite `git` aliases?

Collapse
 
yechielk profile image
Yechiel Kalmenson • Edited

Not strictly a git alias, but I have a bash alias gclone <repo> that clones the repo and cds into the directory.

gclone() {
    git clone "$1" && cd "$(basename "$1" .git)"
}