Skip to content

Instantly share code, notes, and snippets.

View dragonworx's full-sized avatar

dragonworx

  • Australia
View GitHub Profile
@dragonworx
dragonworx / gitsnips.md
Last active October 29, 2021 04:52
Git Snips

Commits

Get hash for commit: git rev-parse HEAD

Stop commit during message edit in VIM: :cq (q! doesn't stop commit)

Adding

@dragonworx
dragonworx / .gitconfig
Last active September 23, 2021 00:47
Gitconfig aliases
[alias]
st = status
ci = commit
br = branch
co = checkout
com = checkout master
fe = fetch origin
bn = !git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD`
rb = rebase
rbm = rebase master