Working with changes
August 27, 2018 ยท View on GitHub
Commit changes
All changes made to a repository will show up under the Changes view.
- Select the changes to be committed. Can choose the All/None options, or select directories or files individually.
- Enter a Commit summary which describes the purpose of the commit. An optional Commit description can also be entered.
- Click the button
Commit to [branch name].
The commit will not be shown under the History view. On the top bar the button Push (1) indicates that there is 1 commit to push.
Push changes to GitHub
-
Click
Pushonce ready to push a commit to GitHub.
-
A dialog will appear asking
Would you like to push changes to remote 'branch name'?SelectPush.
-
Another dialog will appear when the push to GitHub is complete saying
Branch pushed. Selectok.
Revert changes
-
From the History view, right-click on a commit in the commit list. A
Revertoption will appear. -
Click
Revert.
-
A dialog will appear asking
Are you sure you want to revert the following commit: "commit message"?. SelectRevert.
-
A new commit appears titled
Revert "commit summary"and the view indicates that there is 1 commit to push.
-
Follow the steps to push the reverted commit to GitHub.
Pulling changes
-
Click the
Fetchbutton to get all the latest branches and tags for the repository. ThePullbutton will then show the number of commits to pull from GitHub. -
Click
Pull.
-
A dialog will appear asking
Would you like to pull changes from remote 'branch name'?. SelectPull.
-
Another dialog appears saying
Local branch is up to date with 'branch name'. Selectok.