Skip to content

Instantly share code, notes, and snippets.

@shbaz
shbaz / gist:1196551
Created September 6, 2011 04:04 — forked from zommarin/gist:1195238
git snippets
#
# Misc good to have commands when using git
#
# Short and nice log
git log --pretty=oneline Path
# Create a new freestanding branch
git symbolic-ref HEAD refs/heads/<branch-name>
rm .git/index -ErrorAction SilentlyContinue