Skip to content

Commit dbbc2e1

Browse files
committed
Add instructions on how to update when forking our repository
- Add some examples commands for git on how to update with latest changes from upstream.
1 parent 8bfc9e7 commit dbbc2e1

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Documentation/forking.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Forking
2+
3+
To fork this repo, and continue to get patches and updates, you need to make sure you fetch updates correctly from the upstream repo.
4+
5+
```
6+
# Fetch the changes from upstream repo
7+
git fetch upstream
8+
9+
# View all branches
10+
git branch -va
11+
```
12+
13+
Depending of you are working with master as the primary branch or not, you can do the following to checkout your branch, and then
14+
perform an merge with upstream branch.
15+
16+
```
17+
git checkout master
18+
git merge upstream/master
19+
```
20+
21+
## Resources
22+
23+
[GitHub Standard Fork & Pull Request Workflow](https://gist.github.com/Chaser324/ce0505fbed06b947d962)
24+
25+
[Merging an upstream repository into your fork](https://help.github.com/articles/merging-an-upstream-repository-into-your-fork/)
26+
27+
[Long-Running Branches](https://github.com/dotnet/llilc/blob/master/Documentation/Long-Running-Branch-Workflow.md)

0 commit comments

Comments
 (0)