Skip to content

Instantly share code, notes, and snippets.

@kidal5
Last active January 29, 2024 15:50
Show Gist options
  • Save kidal5/9a587960b31804659144869ecffe16ee to your computer and use it in GitHub Desktop.
Save kidal5/9a587960b31804659144869ecffe16ee to your computer and use it in GitHub Desktop.
nano ~/.bashrc
source ~/.bashrc
# usefull git aliases
alias gc='git checkout'
alias gcb='git checkout -b'
alias gd='git diff'
alias gf='git fetch'
alias gl='clear && git log --decorate --oneline --graph -n 40'
alias ggl='gl --all'
alias gp='git push'
alias gpf='git push --force'
alias gpl='git pull'
alias grhh='git reset --hard HEAD'
alias gs='git status'
alias cls='clear'
alias ccat='clear && cat'
alias gsu='git submodule update --init --recursive'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment