Saturday, December 05, 2009
Two little Git helpers
Git is really powerful but some of its commands can be very obtuse. Two little helpers I have in my .gitconfig that I thought some of you might find useful are
[alias]
uncommit = reset --soft HEAD^
unstage = reset HEAD
The uncommit will back out the last non-pushed commit. Unstage will do as it says, remove a file from the staging buffer.
The alias section is a great place for your shortcuts.
Filed Under : Computers • Development •
Comments are closed There are no comments on this entry.
Tags: DVCS, GIT