Skip to content
Snippets Groups Projects
Commit 8d896291 authored by ck85nori's avatar ck85nori :railway_track:
Browse files

improves conflicts and rebase sections

parent 6e22e0c7
Branches
No related tags found
No related merge requests found
...@@ -854,7 +854,8 @@ ...@@ -854,7 +854,8 @@
```bash ```bash
git remote add alice https://... git remote add alice https://...
git fetch alice git fetch alice
git merge alice/master git checkout master
git merge alice/topic/feature
# fix conflicts # fix conflicts
git push git push
``` ```
...@@ -863,6 +864,7 @@ ...@@ -863,6 +864,7 @@
```bash ```bash
git fetch upstream git fetch upstream
git checkout topic/feature
git merge origin/master git merge origin/master
# fix conflicts # fix conflicts
git push git push
...@@ -919,31 +921,34 @@ ...@@ -919,31 +921,34 @@
# backup slides # backup slides
</section> </section>
<section id="collab-conflicts-rebase" data-markdown> <section id="collab-rebase-maintainer" data-markdown>
## rebasing ## rebasing
### maintainer ### as maintainer
```bash ```bash
git remote add alice https://... git remote add alice https://...
git fetch alice git fetch alice
git rebase master alice/master git rebase [--interactive] master alice/topic/feature
# fix conflicts # fix conflicts
git push git push
# close merge request # manually close merge request
``` ```
### contributor notes:
- manually close merge request because no merge commit
</section>
<section id="collab-rebase-contributor" data-markdown>
## rebasing
### as contributor
```bash ```bash
git fetch upstream git fetch upstream
git rebase origin/master master git rebase origin/master topic/feature
# fix conflicts # fix conflicts
# force push because branch history changed # force push because branch history changed
git push --force git push --force
``` ```
notes:
- manually close merge request because no merge commit
</section> </section>
</section> </section>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment