Created
June 14, 2016 16:00
-
-
Save adambowles/c1fce7e473ebe652fc5ff9f5ba07ab77 to your computer and use it in GitHub Desktop.
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
# Git | |
alias undopush="git push -f origin HEAD^:master" | |
alias gd="git diff" | |
alias gds="git diff --stat" | |
alias gdc="git diff --cached" | |
alias gdcs="git diff --cached --stat" | |
alias ga="git add" | |
alias gca="git commit -a -m" | |
alias gcm="git commit -m" | |
alias gbd="git branch -D" | |
alias gst="git status -sb --ignore-submodules" | |
alias gme="git merge --no-ff" | |
alias gpt="git push --tags" | |
alias gp="git push" | |
alias grs="git reset --soft" | |
alias grh="git reset --hard" | |
alias gb="git branch" | |
alias gcob="git checkout -b" | |
alias gco="git checkout" | |
alias gba="git branch -a" | |
alias gcp="git cherry-pick" | |
alias gl="git log" | |
alias gpom="git pull origin master" | |
alias gsloc="git diff --stat 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | tail -1 | grep -oh '[0-9]*' | tail -1" # git source lines of code - number of lines addes from an empty repo | |
alias gnb="gco master; git pull --all; gcob" #git new branch - ensure you're branching from master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment