Skip to content

Instantly share code, notes, and snippets.

@milanpanchal
Created April 5, 2022 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save milanpanchal/01c874b5395377700da95a1b55579954 to your computer and use it in GitHub Desktop.
Save milanpanchal/01c874b5395377700da95a1b55579954 to your computer and use it in GitHub Desktop.
A common global Git config properties #git #gitconfig #configuration #aliases
[user]
name = Milan Panchal
email = sam07it22@gmail.com
[alias]
cp = cherry-pick
co = checkout
st = status
stb = status -sb
ci = commit
cm = commit -m
ca = commit --amend -m
cmm = commit -Ssm
ss = commit --amend -S
last = log -1 HEAD --stat
ls = ls-files
lg = log -p
ll = log --oneline
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local
df = diff
ds = diff --staged
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
# Display all the consul list
cl = config --list
# Display all the git aliases
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
[color]
ui = true
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[core]
excludesfile = ~/.gitignore_global
editor = vim
[init]
defaultBranch = main
[fetch]
prune = true
[merge]
tool = kdiff3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment