How to edit my step-by-step file?

I used the fix mode to add the file. It took a long time to add only the changes that I wanted in this commit. But then I realized that I had made a mistake. There was no one block of code in this commit.

Is there a way to edit a phased git add -up somefile without changing my working directory and not repeat the long git add -up somefile ?

+7
git
source share
1 answer

Yes, just use git reset -p for a selective inactive fix.

+14
source share

All Articles