mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Fixed typos (#1122)
This commit is contained in:
parent
a592f97e01
commit
7b5efaa7a1
@ -9,7 +9,7 @@ sharing: true
|
|||||||
footer: true
|
footer: 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.
|
If it's taking a while to develop your feature, and you want to catch up with what's in the current Home Assistant `dev` branch, you can use `git rebase`. This will pull the latest Home Assistant changes locally, rewind your commits, bring in the latest changes from Home Assistant, and replay all of your commits on top.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Run this from your feature branch
|
# Run this from your feature branch
|
||||||
@ -17,19 +17,18 @@ $ 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
|
$ 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:
|
If rebase detects conflicts, repeat this process until all changes have been resolved:
|
||||||
|
|
||||||
1. `git status` will show you the file with the conflict.
|
1. `git status` shows you the file with the conflict; edit the file and resolve the lines between `<<<< | >>>>`
|
||||||
2. Edit the file and resolving the lines between `<<<< | >>>>`
|
3. Add the modified file: `git add <file>` or `git add .`
|
||||||
3. Add the modified file `git add <file>` or `git add .`
|
4. Continue rebase: `git rebase --continue`
|
||||||
4. Continue rebase `git rebase --continue`
|
5. Repeat until you've resolved all conflicts
|
||||||
5. Repeat until you've resolved all conflicts.
|
|
||||||
|
|
||||||
There is other workflows that is covered in detail in the [Github documentation](https://help.github.com/articles/fork-a-repo/). Add an additional `remote` after you clone your fork.
|
Other workflows are covered in detail in the [Github documentation](https://help.github.com/articles/fork-a-repo/). Add an additional `remote` after you clone your fork.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git remote add upstream https://github.com/home-assistant/home-assistant.git
|
$ git remote add upstream https://github.com/home-assistant/home-assistant.git
|
||||||
```
|
```
|
||||||
|
|
||||||
and then simply `git pull --rebase upstream dev`.
|
Then, `git pull --rebase upstream dev`.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user