Skip to content

Commit

Permalink
Merge branch 'git-rebase' into 'master'
Browse files Browse the repository at this point in the history
[web] Use git rebase over git pull.

See merge request ogs/ogs!4975
  • Loading branch information
endJunction committed Apr 10, 2024
2 parents 0ac70bf + 6d2310c commit 1545435
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ git config remote.pushdefault origin
git config push.default current
```

To streamline the updating workflow the `pull`-command is configured to rebase by default (instead of merge) and to handle local modifications automatically (`autostash`). See [this blog post](https://cscheng.info/2017/01/26/git-tip-autostash-with-git-pull-rebase.html) on more information about the `git pull --rebase --autostash`-functionality.
To streamline the updating workflow the `rebase`-command is configured to handle local modifications automatically (`autostash`). See [this blog post](https://cscheng.info/2017/01/26/git-tip-autostash-with-git-pull-rebase.html) on more information about the `git rebase --autostash`-functionality.

```bash
git config pull.rebase true
git config rebase.autoStash true
```

Expand Down Expand Up @@ -180,11 +179,10 @@ gitGraph
To keep up to date with the developments in the official repository it is recommended to rebase your feature-branch regularly (at least weekly) with:

```bash
git pull upstream master
git fetch upstream
git rebase upstream/master
```

We used `git pull` here which was configured to `rebase` by default (`git config pull.rebase true`)

<div class="note">

This can potentially lead to conflicts, which [have to be resolved](https://www.git-tower.com/learn/git/faq/solve-merge-conflicts).
Expand Down

0 comments on commit 1545435

Please sign in to comment.