Skip to content

Instantly share code, notes, and snippets.

@niepiekm
Last active January 19, 2018 10:14
Show Gist options
  • Save niepiekm/380027500e118fd197a5781e5d34a52b to your computer and use it in GitHub Desktop.
Save niepiekm/380027500e118fd197a5781e5d34a52b to your computer and use it in GitHub Desktop.

[alias]

hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
st = status
co = checkout
br = branch
cm = commit
cma = commit -C HEAD --amend
rs = reset --soft
rh = reset HEAD

[core]

autocrlf = true
editor = 'c:/program files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
safecrlf = warn
pager = less -x4

Useful commands

git show [branch~1] # show second last commit at branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment