git stash and edited hunks

前端 未结 3 868
自闭症患者
自闭症患者 2021-02-03 10:29

I totally love git add -p and git stash but I occasionally have the following problem, which is reproduced by the following sequence of commands:

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-03 10:30

    git stash --keep-index preserves your index, but it still adds the index contents as part of the stash.

    Try git stash save -p -- a bit more tedious to save the stash, but will probably do what you want.

提交回复
热议问题