mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-05 10:38:58 +00:00
1.4 KiB
1.4 KiB
layout, title, description, date, sidebar, comments, sharing, footer
layout | title | description | date | sidebar | comments | sharing | footer |
---|---|---|---|---|---|---|---|
page | Catching up with Reality | Update your fork with the latest commit. | 2016-07-01 20:00 | true | false | true | true |
If you're taking a while developing your feature and would like to catch up with what's in the current Home Assistant dev
branch, you can use git rebase
to do so. This will pull the latest Home Assistant changes locally, rewind your commits, bring in the latest changes from Home Assistant and then replay all of your commits on top.
# Run this from your feature branch
$ git fetch upstream dev # to pull the latest changes into a local dev branch
$ git rebase upstream/dev # to put those changes into your feature branch before your changes
If rebase detects conflicts, you can repeat the following process until all changes have been resolved:
git status
will show you the file with the conflict.- Edit the file and resolving the lines between
<<<< | >>>>
- Add the modified file
git add <file>
orgit add .
- Continue rebase
git rebase --continue
- Repeat until you've resolved all conflicts.
There is other workflows that is covered in detail in the Github documentation. Add an additional remote
after you clone your fork.
$ git remote add upstream https://github.com/home-assistant/home-assistant.git
and then simply git pull --rebase upstream dev
.