16 May '12, 2pm

All you ever wanted to know about "git reset -p":

I've been using git reset -p a lot recently and I think it makes sense to clarify what it is that it does because when I first started using it I found it a little confusing. I sometimes realize that an earlier commit contains some change that I don't want, so I want to remove it from the commit. This also works when not rebasing, so for simplicity I'll use an example where the commit to be modified is already HEAD. Previously I would have done: git reset HEAD~1 git add -p git commit -C <treeish> git checkout . Or, in English: take off the HEAD commit, adding it to the working directory add back the parts you want to keep make a new commit using the message from what used to be the HEAD commit throw away the changes you didn't want With git reset -p this process is a little different. Here's what it looks like: git reset -p HEAD~1 git commit --amend -C HEAD git checkout . ...

Full article: http://pivotallabs.com/users/khicks/blog/articles/2114-gi...

Tweets

@Geraldine_NST :p

suntecsingapore.com 15 May '12, 10am

Situated next to the Central Business District, Suntec Singapore is at the heart of a self-contained, totally integrated e...

New blag post, git add -e:

pivotallabs.com 21 May '12, 2pm

git add -e is like git add -p , except instead of adding things at the hunk level, you edit the entire patch at once. Or, ...

#singapore Wow! 147 ppl are attending The D(anc...

thingstodosingapore.com 16 May '12, 4pm

***Pubstunt and posters coming your way soon!*** What is The D Factor? The D Factor is a dance competition organized by th...

@H0NGSTAR the top. gonna discuss with my sis tonight. she has got better fashion sense :P

@H0NGSTAR the top. gonna discuss with my sis to...

runwaybandits.com 18 May '12, 8am

ORDER STATUS SHOPPING BAG (0 ITEM ) New IN Back In Stock Tops Dresses Bottoms Accessories Backorder Sale Blog FREE LOCAL R...

git with tortoise cc @poorprogrammer

git with tortoise cc @poorprogrammer

sparkfun.com 20 May '12, 7am

Yay! You're in. Let's create a new repository. Click on the 'New Repository' button and enter the project name, descriptio...

simple git setup on shared hosting (Dreamhost a...

railstips.org 15 May '12, 5am

GitHub is awesome, really awesome for open source projects and for projects with multiple people. In fact, if you use your...

Too yummie to be true! Strawberry crepecake...

Too yummie to be true! Strawberry crepecake...

sarahs-loft.com 27 May '12, 4pm

Hello hello! If you’re thinking.. this photo looks vaguely familiar… It’s not the same but quite similar to the one in thi...

As profit soars, @SingTel goes shopping in Indi...

sgentrepreneurs.com 14 May '12, 9am

As profit soars, SingTel goes shopping in India and China May 14, 2012 by Terence LEE SingTel, Southeast Asia’s largest mo...

With the #FlamingLips, you can be anything you ...

blackcabsessions.com 16 May '12, 5pm

@blackcabsession the game of Olympic Defence requires more skill http://t.co/83oFM4Wo Posted 19 minutes ago @blackcabsessi...

【イベント】5月27日10:30~新小岩駅東北広場で開催される路線バス「新小岩駅東北広場~東京...

keiseibus.co.jp 21 May '12, 4pm

[高速バス] 5/22 「東京スカイツリータウン~東京ディズニーリゾート線」運行開始! 2012年5月21日 [運行情報] 5/22 墨田区内循環バス・北西部ルート 東京スカイツリータウンに乗入れ開始! 2012年5月14日 [迂回運行] 5/...