Skip to content

Commit ee2eb40

Browse files
committed
Cleanups
1 parent d0fbecc commit ee2eb40

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

docs/forks-branches.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ To merge such changes:
127127

128128
1. Make sure all changes from the experimental branch (aka `test`) have been added and committed.
129129

130+
git checkout test
131+
# make some changes ...
130132
git add .
131-
git commit -m "Tracking changes before merge ..."
133+
git commit -m "Tracking changes before merge"
132134

133135
2. Switch to the branch you want to pull changes _into_:
134136

@@ -145,7 +147,7 @@ To stay current, he will probably want to merge those changes from `main` into h
145147
git checkout main
146148
git pull origin main # get current
147149
git checkout dev
148-
git merge main # merge in main
150+
git merge main # merge main changes into dev
149151

150152
At this point his code will be in sync with the primary branch. This means the new features and changes he is developing are less likely to conflict when merged back into `main`. When developers keep a development branch isolated it gets behind, which means merge conflicts will be much more likely.
151153

@@ -268,4 +270,4 @@ Practice the above skills by doing the following:
268270
9. Clone your fork to your local workstation.
269271
10. Explore the code to understand some of its structure.
270272
11. Create a new branch within your fork.
271-
12. Make some changes/additions, then `git add` and `git commit` those changes. Push your branch back to your fork in GitHub.
273+
12. Make some changes/additions, then `git add` and `git commit` those changes. Push your branch back to your fork in GitHub.

0 commit comments

Comments
 (0)