You can discard all selected changes, individually discard or ignore each pending change, or you can open an updated file in the PENDING CHANGES section.
Discarding removes changes from the active branch.
In the PENDING CHANGES section, discard the relevant changes:
-
To discard the selected changes, hover over the PENDING CHANGES section title and click .
-
To discard changes for an individual file, hover over the file containing the changes you want to discard and click .
Click (Add to .gitignore) to ignore pending changes individually.
Click (Open File) to open an updated file.