How does git ignore new or changed code and not submit it?

There is an urgent bug that needs to be fixed during development, and half of the other code under development has been written. How can I solve this part of the code if I don’t want to submit it?

Hidden method

  1. "Hide" the code, separate out a change_list, right-click on any file in the project, and select stash changes
    Insert image description here
  2. Create after setting a name
    Insert image description here
  3. At this time, this part of the change is hidden, cannot be seen, and cannot be submitted.
    Insert image description here

Recovery method

  1. Select unStash changes
    Insert image description here
  2. Select your saved changes
    Insert image description here
  3. You can restore it after agreeing

Guess you like

Origin blog.csdn.net/ZHAI_KE/article/details/126761245
Recommended