Skip to content

Instantly share code, notes, and snippets.

@pazairfog
Last active November 10, 2017 20:46
Show Gist options
  • Select an option

  • Save pazairfog/b95d0eef6c451bca93439d01ec096e5b to your computer and use it in GitHub Desktop.

Select an option

Save pazairfog/b95d0eef6c451bca93439d01ec096e5b to your computer and use it in GitHub Desktop.
Global git config
[user]
email = whatever@whoever.fr
name = whatever
[alias]
oops = commit --amend
log-me = log --author=whatever --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
log-me-week = !/bin/bash -c 'git log-me --since="1.week"'
me-pull-full = pull -v --recurse-submodules
me-submodule = submodule update --init --recursive
pl-all = !/bin/bash -c 'cd $(git rev-parse --show-toplevel) && git me-pull-full && git fetch -v --tags && git me-submodule && cd -'
[core]
editor = vim
# Don't consider trailing space change as a cause for merge conflicts
whitespace = -trailing-space
excludesfile = /home/whatever/.gitignore
autocrlf = input
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment