Created
May 30, 2019 07:58
-
-
Save liginv/8d10ccb5c0de0bfddd6409b543849df7 to your computer and use it in GitHub Desktop.
My gitconfig
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
# Save this under your home directory's .gitconfig file | |
# $ ~/.gitconfig | |
[user] | |
name = blah | |
email = [email protected] | |
[core] | |
editor = subl -n -w | |
[alias] | |
aliases = config --get-regexp alias #List all aliases | |
s = status -uno #Show status of tracking files | |
sa = status #Show status of all files | |
su = status --porcelain #Oneline all git status | |
int = commit -m "Initial Commit." #Inital commit | |
co = checkout #Checkout | |
b = branch #Branch | |
bd = branch -d #Branch Delete | |
cm = !git add -A && git commit -m #Add and Commit | |
count = !git shortlog | wc -l # Get the count of commits | |
counts = shortlog -s # Get commit count per user | |
p = pull --rebase #Pull and Rebase | |
ppm = !git pull --rebase && git push origin master #Pull Rebase, Push to Master | |
rcdiff = !git diff --name-status master rc | grep -v "AssemblyInfo.cs" #Show Differences Between 2 branches | |
pm = push origin master #Push to Remote Master | |
hist = !gitk --all | |
#####Pretty History##### | |
h = !git log --graph --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 | |
hs = !git h --max-count=10 | |
fh = !git log --format=format:'%C(bold cyan)%ar %C(reset) %C(green)%f' --name-status | |
######################## | |
######### NOT IN USE ALISES ######### | |
#pp = log origin/master..HEAD --graph --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 | |
#pdiff = diff origin/master..HEAD | |
#pullrc = !git pull --rebase origin rc | |
#fwd = !git checkout `git log --reverse --ancestry-path HEAD..master | head -n 1 | cut -d \\ -f 2` #Skip Fwd/Bwd through commit history | |
#rwd = !git checkout HEAD~ | |
#difft = !git difftool --no-prompt | |
#merget = !git mergetool --no-prompt | |
#reset = config credential.helper store | |
#undo = reset HEAD~1 --mixed | |
#ave = !git add -A && git commit -m 'SAVEPOINT' | |
#amend = commit -a --amend | |
#proxyon = !git config --global http.proxy http://proxy-nyc:8080 && git config --global https.proxy http://proxy-nyc:8080 | |
#proxyoff = !git config --global --unset http.proxy && git config --global --unset https.proxy | |
#resetpassword = !git config credential.helper store | |
#conflicts = diff --name-only --diff-filter=U | |
#[core] | |
# diff so fancy | |
#pager = diff-so-fancy | less --tabs=4 -RFX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment