Skip to content

Instantly share code, notes, and snippets.

@xmaillard
Last active August 10, 2017 21:34
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 xmaillard/2412420f6d73d43e5a603338a5edd8fd to your computer and use it in GitHub Desktop.
Save xmaillard/2412420f6d73d43e5a603338a5edd8fd to your computer and use it in GitHub Desktop.
[user]
name = Xavier Maillard
email = xavier@maillard.im
[diff]
submodule = log
[alias]
# the acronym stands for "subtree add"
sba = "!f() { git subtree add --prefix $2 $1 master --squash; }; f"
# the acronym stands for "subtree update"
sbu = "!f() { git subtree pull --prefix $2 $1 master --squash; }; f"
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
co = checkout
ci = commit
st = status
br = branch
type = cat-file -t
dump = cat-file -p
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[push]
default = simple
[core]
excludesfile = /Users/xavier/.gitignore
[github]
user = xmaillard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment