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]
amend = commit --amend -C HEAD
a = add
aa = add -A
ap = add -p
ar = !git add -A . && git reset HEAD .
br = branch
cb = checkout -b
ci = commit
cim = commit -m
co = checkout
go = checkout
df = diff
dic = diff --cached
dh = diff HEAD
pom = push origin master
plom = pull origin master
poa = push origin --all
rh = reset HEAD
st = status
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored = !git ls-files -v | grep '^h'
who = shortlog -sne
graph = log --pretty=oneline --abbrev-commit --graph
[color]
ui = true
[core]
autocrlf = true
ignorecase = false
excludesfile = ~/.gitignore
[branch]
autosetuprebase = always
[diff]
renames = copies
algorithm = patience
[user]
name = Your name here
email = your@mail.com
# Generic files to ignore
*~
*.lock
*.swp
*.out
*.patch
# OS junk files
*.DS_Store
[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