Skip to content

Instantly share code, notes, and snippets.

@jeremyjs
Last active December 30, 2023 03:58
Show Gist options
  • Save jeremyjs/421ff67192ab15f9a38154643214b68e to your computer and use it in GitHub Desktop.
Save jeremyjs/421ff67192ab15f9a38154643214b68e to your computer and use it in GitHub Desktop.
.bashrc
# Core Aliases
alias la="ls -al"
# Git Aliases
alias ga="git add"
alias gaa="git add -A"
alias gb="git branch"
alias gbd="git branch -D"
alias gbv="git branch -vvva"
alias gc="git commit"
alias gca="git commit -a --amend -C HEAD"
alias gcf="git commit --fixup"
alias gchp="git cherry-pick"
alias gcl="git clone"
alias gcm="git commit -m"
alias gco="git checkout"
alias gcob="git checkout -b"
alias gcom="git checkout master"
alias gd="git diff"
alias gl="git log --oneline"
alias gp="git push"
alias gpl="git pull"
alias gplf="git pull --ff-only"
alias gpt="git push --tags"
alias gpu="git push -u"
alias gra="git remote add"
alias grao="git remote add origin"
alias grba="git rebase --abort"
alias grbc="git rebase --continue"
alias gri="git rebase -i"
alias gs="git status"
alias gsh="git show"
alias gt="git tag"
alias gup="git remote update -p"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment