|
1 | 1 | # Working with changes |
2 | 2 |
|
3 | | -All changes made to a repository will show up under the **Changes** tab. |
4 | | - |
5 | 3 | ## Commit changes to GitHub |
6 | 4 |
|
| 5 | +All changes made to a repository will show up under the **Changes** view. |
| 6 | + |
7 | 7 | 1. Select the changes to be committed. Can choose the All/None options, or select directories or files individually. |
8 | 8 | 2. Enter a Commit summary which describes the purpose of the commit. An optional Commit description can also be entered. |
9 | 9 | 3. Click the button `Commit to [branch name]`. |
10 | 10 | <img src="images/changes-view.png" alt="Changes view"/> |
11 | 11 |
|
12 | 12 | 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. |
| 13 | + |
13 | 14 | <img src="images/post-commit-view.png" alt="Post commit view"/> |
14 | 15 |
|
15 | 16 | ## Push changes to GitHub |
16 | 17 |
|
17 | 18 | 1. Click `Push` once ready to push a commit to GitHub. |
18 | 19 | <img src="images/push-view.png" alt="Push view"/> |
19 | | -2. A dialog will appear asking `Would you like to push changes to remote 'branch name’`? Select `Push`. |
| 20 | + |
| 21 | +2. A dialog will appear asking `Would you like to push changes to remote 'branch name'?` Select `Push`. |
20 | 22 | <img src="images/confirm-push-changes.png" alt="Confirm push dialog"/> |
| 23 | + |
21 | 24 | 3. Another dialog will appear when the push to GitHub is complete saying `Branch pushed`. Select `ok`. |
22 | 25 | <img src="images/success-push-changes.png" alt="Branch pushed"/> |
23 | 26 |
|
24 | 27 | ## Revert changes |
25 | 28 |
|
26 | 29 | 1. From the **History** view, right-click on a commit in the commit list. A `Revert` option will appear. |
27 | | -2. Click `Revert` |
| 30 | +2. Click `Revert`. |
28 | 31 | <img src="images/revert.png" alt="Revert"/> |
29 | | -3. A dialog will appear asking `1. Are you sure you want to revert the following commit: "commit message"?`. Select `Revert`. |
| 32 | + |
| 33 | +3. A dialog will appear asking `Are you sure you want to revert the following commit: "commit message"?`. Select `Revert`. |
30 | 34 | <img src="images/confirm-revert.png" alt="Confirm revert dialog"/> |
| 35 | + |
31 | 36 | 4. A new commit appears titled `Revert "commit summary"` and the view indicates that there is 1 commit to push. |
32 | | -<img src="images/revert-commit.png" alt="Revert commit" |
| 37 | +<img src="images/revert-commit.png" alt="Revert commit"/> |
| 38 | + |
33 | 39 | 5. Follow the steps to push the reverted commit to GitHub. |
34 | 40 |
|
35 | 41 | ## Pulling changes |
36 | 42 |
|
37 | 43 | 1. Click the `Fetch` button to get all the latest branches and tags for the repository. The `Pull` button will then show the number of commits to pull from GitHub. |
38 | 44 | 2. Click `Pull`. |
39 | | -<img src="pull-view.png" alt="Pull changes"/> |
| 45 | +<img src="images/pull-view.png" alt="Pull changes"/> |
| 46 | + |
40 | 47 | 3. A dialog will appear asking `Would you like to pull changes from remote 'branch name'?`. Select `Pull`. |
41 | | -<img src="confirm-pull-changes.png" alt="Confirm pull changes dialog"/> |
42 | | -4. Another dialog appears saying `Local branch is up to date with 'branch name'`. Select `ok`. |
43 | | -<img src="success-pull-changes.png" alt="Changes pulled"/> |
| 48 | +<img src="images/confirm-pull-changes.png" alt="Confirm pull changes dialog"/> |
| 49 | + |
| 50 | +4. Another dialog appears saying `Local branch is up to date with 'branch name'`. Select `ok`. |
| 51 | +<img src="images/success-pull-changes.png" alt="Changes pulled"/> |
| 52 | + |
| 53 | + |
0 commit comments