forked from stfc/janus-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace devel with upstream everywhere
- Loading branch information
Showing
1 changed file
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,7 +152,7 @@ you can follow this routine, | |
$ git remote add upstream [email protected]:stfc/janus-core.git | ||
# get the changes to upstream since you started working on your issue | ||
$ git fetch upstream | ||
# merge these changes into your branch (assuming you want to merge into the main branch on devel) | ||
# merge these changes into your branch (assuming you want to merge into the main branch on upstream) | ||
$ git merge upstream/main | ||
# resolve any conflicts | ||
# push to your fork | ||
|
@@ -167,8 +167,8 @@ the differences between merge and rebase | |
# add upstream as a remote if you have not already | ||
$ git remote add upstream [email protected]:stfc/janus-core.git | ||
# get the changes to upstream since you started working on your issue | ||
$ git fetch devel | ||
# merge these changes into your branch (assuming you want to merge into the main branch on devel) | ||
$ git fetch upstream | ||
# merge these changes into your branch (assuming you want to merge into the main branch on upstream) | ||
$ git rebase -i upstream/main | ||
# resolve any conflicts | ||
# push to your fork | ||
|
@@ -180,9 +180,10 @@ $ git push | |
|
||
#### Keeping your fork in sync with project | ||
|
||
By adding two remotes, one for *devel* and one for your *fork* it is | ||
possible to keep your *fork* in sync with *devel*. This will greatly | ||
simplify merge requests. | ||
By adding two remotes, one for *upstream* and one for your *fork* it is | ||
possible to keep your *fork* in sync with *upstream*. This will greatly | ||
simplify merge requests. Github also offers a sync functionality in their | ||
web ui that achieves the same. | ||
|
||
``` sh | ||
# clone your fork | ||
|
@@ -199,11 +200,11 @@ the origin and project fetch and push links | |
$ git remote -v | ||
origin [email protected]:username/janus-core.git (fetch) | ||
origin [email protected]:username/janus-core.git (push) | ||
devel [email protected]:stfc/janus-core.git (fetch) | ||
devel [email protected]:stfc/janus-core.git (push) | ||
upstream [email protected]:stfc/janus-core.git (fetch) | ||
upstream [email protected]:stfc/janus-core.git (push) | ||
``` | ||
|
||
When you need to sync your *fork* with *devel*, do the following, | ||
When you need to sync your *fork* with *upstream*, do the following, | ||
|
||
``` sh | ||
# get the latest commits from upstream | ||
|
@@ -223,7 +224,7 @@ available projects. | |
|
||
When working on an issue you may use multiple commits. When you are | ||
ready to create a merge request, you should squash your changes into one | ||
commit in order to keep *devel* clean. This is most easily achieved with | ||
commit in order to keep *upstream* clean. This is most easily achieved with | ||
an interactive rebase. | ||
|
||
Assuming you have made five commits, | ||
|