Skip to content

Instantly share code, notes, and snippets.

@hectorh30
Created November 10, 2017 18:47
Show Gist options
  • Save hectorh30/62026374babe88482a16166f1b31775f to your computer and use it in GitHub Desktop.
Save hectorh30/62026374babe88482a16166f1b31775f to your computer and use it in GitHub Desktop.
# For Linux machines
[user]
email = [email protected]
name = Hector Hurtarte
[diff]
external = git-diff-meld
[credential]
helper = cache --timeout=604800
[push]
default = upstream
[alias]
# From https://dev.to/sendra/git-faster-with-mingit
s = status -s
c = commit -am
cwip = commit -am "WIP"
a = add
co = checkout
nah = !git reset --hard && git clean -df
mdr = merge --no-commit --no-ff
lg = log --graph --decorate --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn\\ %cr]"
lg-cb = log --graph --decorate --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn\\ %cr]" --first-parent --no-merges
diff-summary = diff --name-status
show-summary = show --name-status
alias = config --get-regexp ^alias\\.
b = branch -vv
m = merge
r = remote -vv
# http://gitready.com/intermediate/2009/02/18/temporarily-ignoring-files.html
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
[color]
ui = always
[merge]
tool = meld
[core]
editor = emacs -nw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment