Skip to content

Instantly share code, notes, and snippets.

@f-karagoz
Forked from DuaelFr/.gitconfig
Created February 1, 2023 23:34
Show Gist options
  • Select an option

  • Save f-karagoz/1e3f3685e19c6e62fb15209910a8b66e to your computer and use it in GitHub Desktop.

Select an option

Save f-karagoz/1e3f3685e19c6e62fb15209910a8b66e to your computer and use it in GitHub Desktop.
Useful git config
[alias]
a = add
aa = add -A
amend = commit --amend -C HEAD
ap = add -p
br = branch
cb = checkout -b
ci = commit
cim = commit -m
cl = clone
co = checkout
cp = cherry-pick
df = diff
dh = diff HEAD
dic = diff --cached
go = checkout
pom = push origin master
plom = pull origin master
poa = push origin --all
rb = rebase
rh = reset HEAD
sl = stash list
sp = stash pop
ss = stash save
st = status -s
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored = !git ls-files -v | grep '^h'
who = shortlog -sne
graph = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an$
[color]
ui = true
[core]
autocrlf = true
excludesfile = ~/.gitignore_global
ignorecase = false
[branch]
autosetuprebase = always
[diff]
renames = copies
algorithm = patience
### Generic files to ignore
*~
*.lock
*.swp
*.out
*.patch
*.log
*.sql
*.sqlite
### OS junk files
.DS_Store
.DS_Store?
*.DS_Store
._*
.Spotlight-V100
.Trashes
ehthumbs.db
[Tt]humbs.db
### Other SCM
.svn
### phpStorm
.idea
### Eclipse based
.buildpath
.settings
.project
### Netbeans
nbproject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment