Git: Revert Modifications Dialog Box
See Also
The Revert Modifications dialog box enables you to throw away local changes made to selected files in your Working Tree and replace those files with the ones in the Index or HEAD.
You can access the Revert Modifications dialog box by selecting a versioned project, file or folder and choosing either:
- Team > Git > Revert > Revert Modifications from the
IDE's main menu.
- Git > Revert > Revert Modifications from the selected item's
right-click menu.
In the Revert Modifications dialog box, select any of the following options:
- Revert All Uncommitted Changes in Working Tree and Index.
Choose to delete all uncommitted changes and return to the state of files in HEAD.
- Remove also New Files and Folders. Select to delete new files and folders that have not been committed to HEAD.
- Revert Uncommitted Changes in Working Tree to the State in Index. Choose to delete uncommitted changes in Working Tree and return to the current state of files in Index.
- Remove also New Files and Folders. Select to delete new files and folder that have been created in Working Tree but have not been added to Index.
- Revert only Uncommitted Changes in Index to HEAD. Choose to delete uncommitted changes in Index and return to the state of files in HEAD.
After you click Revert, the IDE replaces the selected files with those you specified in the selected option.
- See Also
- About Git Support
- Git: Comparing File Revisions
Legal Notices