Skip to content

Instantly share code, notes, and snippets.

@embarq
Last active May 11, 2018 12:15
Show Gist options
  • Save embarq/9068d03b427f18730a1ea7403b14c903 to your computer and use it in GitHub Desktop.
Save embarq/9068d03b427f18730a1ea7403b14c903 to your computer and use it in GitHub Desktop.
# This is Git's per-user configuration file.
[alias]
b = "!git branch"
c = "!git commit -m" # regular shorthand
ca = "!git commit --amend --no-edit" # add to stage again
ch = "!git checkout"
cm = "!git add -A && git commit -m"
ds = "!git diff --staged -w"
lg = "!git log --pretty=format:'%C(bold red)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold red)<%an>%Creset' --abbrev-commit"
ll = "!git lg -5 --stat"
mf = "!git merge --no-ff"
me = "!git config user.name embarq && git config user.email [email protected]"
save = "!git add -A && git commit -m 'Save-point'"
st = "!git status --short --branch"
ra = "!git reset --soft HEAD~1"
rs = "!git reset"
rsh = "!git reset --hard HEAD"
rsa = "!git commit --amend --reset-author"
rsx = "!git stash --keep-index && git reset && git stash drop"
pl = "!git pull origin"
up = "!git push origin"
upd = "!git push origin dev"
upm = "!git push origin master"
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
[color]
ui = true
[core]
autocrlf = false
ignorecase = false
[diff]
renames = copies
[help]
autocorrect = 1
# This is Git's per-user configuration file.
[alias]
b = "!git branch"
c = "!git commit -m" # regular shorthand
ca = "!git commit --amend --no-edit" # add to stage again
ch = "!git checkout"
cm = "!git add -A && git commit -m"
ds = "!git diff --staged -w"
lg = "!git log --pretty=format:'%C(bold red)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold red)<%an>%Creset' --abbrev-commit"
lgm = "!git log --pretty=format:'- %s%C(bold red) <%an>%Creset'"
ll = "!git lg -5 --stat"
mf = "!git merge --no-ff"
me = "!git config user.name embarq && git config user.email [email protected]"
she = "!git config user.name Alione Thetaris && git config user.email [email protected]"
save = "!git add -A && git commit -m 'Save-point'"
st = "!git status --short --branch"
ra = "!git reset --soft HEAD~1"
rs = "!git reset"
rsh = "!git reset --hard HEAD"
rsa = "!git commit --amend --reset-author"
rsx = "!git stash --keep-index && git reset && git stash drop"
pl = "!git pull origin"
up = "!git push origin"
upd = "!git push origin dev"
upm = "!git push origin master"
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
[color]
ui = true
[core]
autocrlf = false
ignorecase = false
editor = nano
[diff]
renames = copies
[help]
autocorrect = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment