|
|
|
|
|
by spacemanaki
5104 days ago
|
|
> It'd be easier if I could stash some but not all of my changes to get them out of my workspace temporarily, but this hasn't bugged me enough to figure out how to implement that. Here, let me help you, from the examples section of `git help stash`: "Testing partial commits
You can use git stash save --keep-index when you want to make two or more commits out of the changes in the
work tree, and you want to test each change before committing: # ... hack hack hack ...
$ git add --patch foo # add just first part to the index
$ git stash save --keep-index # save all other changes to the stash
$ edit/build/test first part
$ git commit -m 'First part' # commit fully tested change"
A nice thing about Git's Swiss army knife nature: someone else has likely run into most problems you encounter, and have added the solution to Git porcelain. |
|