Stash only one file out of multiple files that have changed with Git? -
How do I sort out one of the more than one converted file in my branch?
As described in the comments, it puts everything in the station, both are numb and unstable. After the hiding place - Index index leaves the index alone. When you pop up after hiding later, this may be the cause of merge tributes.
This will hide everything that you have not added before. Just add the git
to the things you want to keep, then run it. For example, if you want to divide the old change into more than one change, then
git stash --keep-index
You can use this process:
-
git rebase -i & lt; Last Good Bid & gt;
- Mark some changes as
edit
. -
Reset git HEAD ^
-
git add & lt files that you want to keep in this change & gt;
-
git stash --keep-index
- Fix things as needed
git add
Do not forget to -
git commit
-
git hiding pop
- Required # Repeat with 5.
-
GIT Rebase - Continue
Comments
Post a Comment