Skip to content

Instantly share code, notes, and snippets.

@maximzakharov
Last active June 15, 2017 18:09
Show Gist options
  • Save maximzakharov/b87334cf60851c6738aa124a3e15db44 to your computer and use it in GitHub Desktop.
Save maximzakharov/b87334cf60851c6738aa124a3e15db44 to your computer and use it in GitHub Desktop.
[alias]
co = checkout
ci = commit
st = status
br = branch
df = diff --name-only
hist = log --pretty=format:'%ad %s%d [%an]' --oneline --decorate
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset— %C(bold yellow)%an' --abbrev-commit --date=relative
l = log --graph --all --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ad)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=local
commend = commit --amend --no-edit
it = !git init && git commit -m “root” --allow-empty
[user]
email = [email protected]
name = Maxim Zakharov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment