Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contributing: Simplify branch instructions #928

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ It is important that "origin" points to your fork.

### Update before creating a feature branch

* Make sure your are starting with the branch for the latest version, i.e., _grass8_:
* Download updates from all branches from the _upstream_ remote:

```bash
git checkout grass8
git fetch upstream
```

* Download updates from all branches from the _upstream_ remote:
* Make sure your are starting with the branch for the latest version, i.e., _grass8_:

```bash
git fetch upstream
git switch grass8
```

* Update your local branch to match the one in the upstream repository:
Expand All @@ -98,13 +98,7 @@ git stash
git rebase upstream/grass8
```

* Apply your local changes on top:

```bash
git stash apply
```

* Remove the stash record (optional):
* Apply your local changes on top of the updated code:

```bash
git stash pop
Expand All @@ -118,7 +112,7 @@ based on it.
* Create a new feature branch and switch to it:

```bash
git checkout -b new-feature
git switch -c new-feature
```

### Making changes
Expand Down Expand Up @@ -158,6 +152,9 @@ or you can go any time later to your fork on GitHub, display the
branch `new-feature`, and GitHub will show you button to create
a pull request.

Some contributors use GitHub CLI which allows them to create the pull request
from command line in one step together with pushing the changes to GitHub.

### After creating a pull request

GRASS GIS maintainers or users will now review your pull request.
Expand Down
Loading