DEV Community

Discussion on: What GIT GUI client do you use?

Collapse
 
louislow profile image
Louis Low • Edited

Oh yes, I created a few most frequently used Git commands with aliases in my .bashrc file. Usually, the shorthand commands not more than 6 letters.

# @file: .bashrc
alias gprn='du -hs $PWD/.git; git status; git pull; git gc --aggressive --prune=all; du -hs $PWD/.git'
alias gprna='find . -name .git -type d -execdir git gc --prune=all ";"'
alias gs='git status'
alias gpsh='du -hs $PWD/.git; git gc --aggressive --prune=all; du -hs $PWD/.git; git status; git push'
alias gcomp='du -hs $PWD/.git; git gc --aggressive --prune=all; du -hs $PWD/.git; git add .; git commit -m'
alias gclone='git clone'
alias gc='git checkout'
alias gcm='git commit -m'
alias gs='git status'
alias ga='git add --all'
alias gp='git pull --rebase'
alias gb='git branch -vv'
alias gr='git remote -v'
alias grt='git reset --hard'
alias gpub='git push origin publish'
alias grp='git rebase publish'
alias gdev='git push origin dev'
alias gd='git branch -D'
alias gm='git merge'
alias gh='git push'
alias gda='git branch | grep -v "develop" | grep -v "release" | xargs git branch -D'
alias gf='git fetch'
alias gl='git log -3'
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
madza profile image
Madza

Nice list 🔥🔥🔥 Thanks for sharing with us ❤

Thread Thread
 
simonguillochon profile image
dondappr33

Hey ! Do you know ZSH has its own aliases for Git in CLI ?
github.com/ohmyzsh/ohmyzsh/wiki/Ch...

Thread Thread
 
louislow profile image
Louis Low

Yea, I know. But I am kinda married to Bash like forever (16 years). I don't think I would find any other partner.

Thread Thread
 
simonguillochon profile image
dondappr33

Weddings are increasingly rare so congratulations lol

Thread Thread
 
louislow profile image
Louis Low

Everything is weird these days.