Skip to content

Instantly share code, notes, and snippets.

@oucem
Forked from Mattgic/.gitconfig
Last active June 17, 2022 08:54
Show Gist options
  • Save oucem/e24f87e4afb07a7ba8d2bc9e4a1f8ba3 to your computer and use it in GitHub Desktop.
Save oucem/e24f87e4afb07a7ba8d2bc9e4a1f8ba3 to your computer and use it in GitHub Desktop.
git config
[user]
name = Rabhi Houcem
email = [email protected]
[core]
autocrlf = input
excludesfile = ~/.gitignore-global
editor = vim
[color]
ui = true
[alias]
st = status
sts = status -sb
ci = commit
br = branch
bra = branch -a
co = checkout
df = diff
dc = diff --cached
ls = ls-files
showtrackedignored = ls-files -i --exclude-standard
last = log -1 HEAD
l = log --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar) %C(yellow)<%an>%Creset'
lf = log --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar) %C(yellow)<%an>%Creset' --first-parent
ll = log -5 --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar) %C(yellow)<%an>%Creset'
aliases = config --get-regexp ^alias\\.
s = stash
sp = stash pop
cia = commit --amend
ap = add -p
p = pull
cb = checkout -b
mf = merge --no-ff
whe = branch --contains
au = add -u
find = log --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar) %C(yellow)<%an>%Creset' --name-status --grep
brd = branch -D
po = push origin
rh = reset --hard
puf = push --force-with-lease
brst = for-each-ref refs/heads --format='%(refname:short)%(color:red)%(upstream:track)'
cco = cherry-pick --continue
sl = stash list --date=local
ciae = commit --amend --no-edit
rbc = rebase --continue
rba = rebase --abort
lsf = diff-tree --no-commit-id --name-only -r
pod = push origin --delete
cp = cherry-pick
rb = rebase
f = fetch
ciaen = commit --amend --no-edit -n
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green
changed = red
untracked = cyan
[diff]
mnemonicprefix = true
[push]
default = upstream
[pull]
rebase = merges
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[rerere]
enabled = true
[merge]
conflictstyle = diff3
[remote "origin"]
prune = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment