Do you use any aliases to be more productive with git? 🤔
These are my abbreviations in fish.
github.com/kodaman2/kubuntu-dotfil...
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.
.bashrc
# @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'
Nice list 🔥🔥🔥 Thanks for sharing with us ❤
Hey ! Do you know ZSH has its own aliases for Git in CLI ? github.com/ohmyzsh/ohmyzsh/wiki/Ch...
Yea, I know. But I am kinda married to Bash like forever (16 years). I don't think I would find any other partner.
Bash
Weddings are increasingly rare so congratulations lol
Everything is weird these days.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Do you use any aliases to be more productive with git? 🤔
These are my abbreviations in fish.
github.com/kodaman2/kubuntu-dotfil...
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.Nice list 🔥🔥🔥 Thanks for sharing with us ❤
Hey ! Do you know ZSH has its own aliases for Git in CLI ?
github.com/ohmyzsh/ohmyzsh/wiki/Ch...
Yea, I know. But I am kinda married to
Bash
like forever (16 years). I don't think I would find any other partner.Weddings are increasingly rare so congratulations lol
Everything is weird these days.