Last active
August 19, 2019 18:48
-
-
Save another-guy/33b0aac2447eff03463fdc2e6fb29a30 to your computer and use it in GitHub Desktop.
My Bash Profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias cs="less ~/.cheat-sheet.txt" | |
alias gbl="git blame " | |
alias gch="git checkout " | |
alias gchb="git checkout -b " | |
alias gcl="git clone " | |
alias gcm="git commit " | |
alias gcma="git commit --amend " | |
alias gcp="git cherry-pick " | |
alias gdd="git add " | |
alias gdf="git diff " | |
alias gdfc="git diff --cached " | |
# https://git-scm.com/docs/git-log#_pretty_formats | |
alias glog="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) %C(bold green)(%ar|%ai)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all " | |
alias glog2="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all " | |
alias gmr="git merge " | |
alias gmv="git mv " | |
alias gnt="git init " | |
alias gpl="git pull " | |
alias gps="git push " | |
alias gr="git revert " | |
alias grb="git rebase " | |
alias grbi="git rebase --interactive " | |
alias grm="git rm " | |
alias grs="git reset " | |
alias grsh="git reset --hard" | |
alias gsh="git show " | |
alias gst="git status " | |
alias gsts="git stash " | |
alias gstsp="git stash pop " | |
alias gtg="git tag " | |
alias l="ls -la " | |
alias nwnd="/c/Program\ Files/Git/bin/sh.exe --login -i " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment