Snippets of the day – Thursday, December 5, 2013

Posted on Posted in Snippets

code-snippet-2

Here are some of the most recently published snippets!

Remove commits, but keep local changes.

Removes the last commit, but will preserve the local changes.

Open the snippet

Author:    libby

Remove local commits and local changes

Remove the last commit and the local changes associated with that commit. HEAD~1 removes the last commit and the associated local changes, HEAD~2 removes the last 2 commits and the associated local changes, etc.

Open the snippet

Author:    libby

Leave a Reply

Your email address will not be published. Required fields are marked *