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.

 

Posted by Stu on 12/05/2009 at 11:19 PM Permalink to this post.
Filed Under : ComputersDevelopment
Comments are closed There are no comments on this entry.
Tags: ,
Page 1 of 1 pages