Updated Branching and Merging (markdown)
parent
f828a0d476
commit
5b7be33b14
1 changed files with 2 additions and 2 deletions
|
@ -18,11 +18,11 @@ git rebase origin/master
|
||||||
|
|
||||||
## Clean up your commits before creating a PR
|
## Clean up your commits before creating a PR
|
||||||
|
|
||||||
When working locally, do whatever you want. Before sharing, clean up your history into logical commits and write good commit messages for them.
|
When working locally, do whatever you want. Before sharing, clean up your history into logical commits and write good commit messages for them. Focus on clarity for someone reading this 3 months from now.
|
||||||
|
|
||||||
```
|
```
|
||||||
git fetch
|
git fetch
|
||||||
git rebase -i origin/master # rearrange and reword commits. aim for readability by others
|
git rebase -i origin/master
|
||||||
git push -u origin your_branch_name
|
git push -u origin your_branch_name
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue