diff --git a/Branching-and-Merging.md b/Branching-and-Merging.md index 85d01aa..178d12e 100644 --- a/Branching-and-Merging.md +++ b/Branching-and-Merging.md @@ -18,11 +18,11 @@ git rebase origin/master ## 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 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 ```