Skip to content

Commit 011b4d7

Browse files
authored
Update git instructions in contributing.md
Former-commit-id: b092110a9d505488bbb4f4da8938563ce7d85db0
1 parent 506b3f1 commit 011b4d7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

contributing.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,23 @@ before submitting any pull requests.
4444
git clone github.com/<githubusername>/t-route.git
4545
```
4646

47-
* Make your changes to the source files
47+
* Make a new branch and make your changes to the source files in the branch
4848

4949
* Add changed files to the commit ... `git add <list of your changed files>`
5050

5151
* ... and commit them: `git commit`
5252

53-
* Push the accumulated commits to your fork in GitHub: `git push`
53+
* Push the accumulated commits to your fork/branch in GitHub: `git push`
5454

5555
* Open GitHub and issue a pull request.
5656

57-
* **IMPORTANT** Keep your code updated with the upstream. with the following commands.
57+
* **IMPORTANT** Keep your master branch code up-to-date with the upstream repository using the following commands. As commits from other developers accumulate in the master, merge these into your fork prior to issuing a pull request.
5858

5959
```
6060
git remote add upstream https://github.com/NOAA-OWP/t-route.git
61-
git fetch upstream && git merge --rebase upstream/master
61+
git fetch upstream && git pull --rebase upstream master
6262
6363
```
64-
6564
## A more detailed step-by-step guide to contributing via GitHub
6665

6766
### 1. On GitHub, create a fork and clone it to your local directory

0 commit comments

Comments
 (0)