Skip to content

Instantly share code, notes, and snippets.

@AliMD
Last active November 6, 2018 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AliMD/09b835d9b0cd7235b87cf0647324951c to your computer and use it in GitHub Desktop.
Save AliMD/09b835d9b0cd7235b87cf0647324951c to your computer and use it in GitHub Desktop.
Ali.MD Git Config
[user]
name = Ali Mihandoost
email = alimihandoost@gmail.com
[alias]
c = commit -m
ca = commit -am
cl = clone
pl = pull
p = push
pa = push --all
pt = push --tags
s = status -s
m = merge
b = branch
bd = push origin --delete
sclone = clone --depth=1
co = checkout
df = diff --color --color-words --abbrev
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
reup = rebase-update # depot_tools specific
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
[help]
autocorrect = 1
[push]
default = current
# rewrites of repo paths
[url "http://alimd@git.ptcvdep.net/"]
insteadOf = "ptc:"
# so much color
[color]
ui = always
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[credential]
helper = store
@AliMD
Copy link
Author

AliMD commented Nov 6, 2018

nano ~/.gitconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment