04 Oct '13, 10pm

insanely useful.

It may come to pass that you will amend HEAD with changes that were meant to go on a commit earlier than HEAD via git commit --amend . In this case, you’ll want to rewind that operation you just did, and apply it to the correct commit. With simple changes you may find git reset -p handy. For times when the changes are far too large and intertwined to the commit, you will want to refer to git reflog for help. The reflog records when the tip of a branch is updated. The tip is updated any time you create a new commit, amend a commit, reset a commit, switch branches, etc. Basically, any time HEAD changes, you will get a reflog entry. The reflog therefore is a great tool for understanding how the repository came to be in a particular state. git reflog -2 will give you the last two operations that Git performed. In this case, it will look something like: 8751261 HEAD@{0}: commit...

Full article: http://pivotallabs.com/rewinding-git-commit-amend/

Tweets

Pivotal Labs Tech Talks

pivotallabs.com 03 Oct '13, 7am

Patrick McFadin gives an introduction to Cassandra and explains how the database can excel in distributed contexts to prov...

Day from opensource project maintainer: git com...

rubyflow.com 02 Oct '13, 7pm

Day from opensource project maintainer: git commit –author Posted by mpapis on October 02, 2013 — 0 comments I just publis...

ActiveSupport::PerThreadRegistry seems useful:

api.rubyonrails.org 08 Oct '13, 7pm

This module is used to encapsulate access to thread local variables. Instead of polluting the thread locals namespace: Thr...

We're adding exploratory testers to Cloud Found...

pivotallabs.com 03 Oct '13, 7pm

The Cloud Foundry engineering team is looking for a few great exploratory testers to join us in building an open source pl...

@starbuxman @wattersjames Hey! I just did a Piv...

pivotallabs.com 03 Oct '13, 5am

Patrick McFadin gives an introduction to Cassandra and explains how the database can excel in distributed contexts to prov...

Improvements to LicenseAudit - a tool to track ...

pivotallabs.com 03 Oct '13, 6pm

Over the last week, Abhinav and I have been working on some enhancements and cleanup of LicenseAudit . For those that don’...

How I Grabbed 18 Quintillion IP Addresses from Comcast and They Didn't Even Care - Pivotal Labs

How I Grabbed 18 Quintillion IP Addresses from ...

pivotallabs.com 30 Sep '13, 8pm

How I Grabbed 18 Quintillion IP Addresses from Comcast and They Didn’t Even Care Brian Cunnie Sunday, September 29, 2013 B...