Halting Problem

A conspiracy of cartographers, v4.0

Wednesday, January 16, 2013

Git: Picking which diffs to stage

git add typically stages files on a file-by-file basis, but you can stage single diff pieces (hunks) of a file with the --patch (or -p) option to git add.

It will open an interactive console application to let you pick which hunks to stage.

Explained in more detail here: http://nuclearsquid.com/writings/git-add/
Posted by Michael Kelly at 2:38:00 PM
Newer Post Older Post Home

My Other Stuff

  • michaelkelly.org

Blog Archive

  • ►  2021 (1)
    • ►  April (1)
  • ►  2019 (1)
    • ►  May (1)
  • ►  2017 (2)
    • ►  October (1)
    • ►  July (1)
  • ►  2014 (6)
    • ►  October (2)
    • ►  June (2)
    • ►  April (1)
    • ►  March (1)
  • ▼  2013 (17)
    • ►  December (3)
    • ►  November (1)
    • ►  October (2)
    • ►  September (3)
    • ►  August (1)
    • ►  June (2)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ▼  January (2)
      • Android App Idea: Simple, Subway-Friendly Commute ...
      • Git: Picking which diffs to stage
  • ►  2012 (7)
    • ►  December (1)
    • ►  October (1)
    • ►  August (1)
    • ►  June (1)
    • ►  May (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2011 (10)
    • ►  December (2)
    • ►  November (1)
    • ►  October (1)
    • ►  May (1)
    • ►  March (2)
    • ►  February (1)
    • ►  January (2)
  • ►  2010 (12)
    • ►  December (2)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  May (3)
    • ►  February (2)
Simple theme. Powered by Blogger.