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 at 11:18 PM
Filed Under : ComputersDevelopment
Comments are closed There are no comments on this entry.

Tags: ,
Share/Bookmark
Commenting is not available in this weblog entry.

Next entry: VPS

Previous entry: Busy Busy

<< Back to main