Viewing file differences after modifications

Let's modify the single Java class created in the previous project. If you go to the Git Staging view after making changes to the file, you will see that the file appears in the Unstaged Changes list. To see what changes have been made to the file since the last commit, double-click on the file in the Git Staging view.

To commit these changes, move it to Staged Changes view, enter Commit Message, and click the Commit button. You can also view the file differences by clicking on the file in Package Explorer and selecting Compare With | Head Revision:

Figure 3.23: Viewing a file difference

To see the history of changes to the project or file(s)/folder(s), right-click and select Team | Shown in History:

Figure 3.24: Git History view
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.26.221