Skip to content

Instantly share code, notes, and snippets.

@c5inco
Last active November 3, 2020 05:37
Show Gist options
  • Save c5inco/89c9e94aaa6763e6efc28b55bc32ab6a to your computer and use it in GitHub Desktop.
Save c5inco/89c9e94aaa6763e6efc28b55bc32ab6a to your computer and use it in GitHub Desktop.
Some aliases for Git
[alias]
st = status
co = checkout
b = branch
a = add .
can = commit --amend --no-edit
hist = log --graph --pretty=format:'%Cred%h%Creset |%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
rh = reset --hard
cp = cherry-pick
cln = clean -xfd
c = commit
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment