Skip to content

Instantly share code, notes, and snippets.

@GregoireHebert
Last active April 10, 2020 07:59
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 GregoireHebert/569c7e601c0c5a54a45f to your computer and use it in GitHub Desktop.
Save GregoireHebert/569c7e601c0c5a54a45f to your computer and use it in GitHub Desktop.
Custom ~/.gitconfig
[user]
name = Grégoire Hébert
email = gregoire@les-tilleuls.coop
[core]
excludesfile = /Users/gheb/.gitignore_global
[difftool]
prompt = false
[color]
branch = auto
status = auto
interactive = auto
diff = auto
[alias]
# edit last commit
amend = commit --amend
# cancel last local commit
undo = reset --soft HEAD^
# rapid checkup
changes = diff --name-status
dic = diff --cached
diffstat = diff --stat
st = status
# condensed logs
hist = log --pretty=oneline --abbrev-commit --graph --decorate
# show changes since last pull
lc = !git log --pretty=oneline ORIG_HEAD.. --stat --no-merges
# add some files to commit
addm = !git ls-files -m -z | xargs -0 git-add && git status
addu = !git ls-files -o --exclude-standard -z | xargs -0 git-add && git status
rmm = !git ls-files -d -z | xargs -0 git-rm && git status
# show all users that did commit
who = shortlog -sne
supdate = submodule update --remote --merge
spush = push --recurse-submodules=on-demand
sdiff = !git diff && git submodule foreach 'git diff'
[commit]
gpgsign = true
[gpg]
program = gpg
[rerere]
enabled = true
[tag]
sort = version:refname
[merge]
tool = vimdiff2
.idea
autom4te.cache/
.php_cs.cache
app/bootstrap.php.cache
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.phpunit.result.cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment