Git – Rollback to last commit

“Reset the working tree to the last commit”

git reset --hard HEAD^  [/code]
"Clean unknown files from the working tree"

git clean[/code]

see - http://jonas.nitro.dk/git/quick-reference.html


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.