You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2022. It is now read-only.
The Golden Rule of Rebase: Never rebase after you have shared the branch with others
It is far too easy to screw things up if you rebase on a "public" branch, i.e. one visible to others
If you have never pushed the feature branch, then it's okay to rebase
After you have shared, always do a merge, not a rebase
Update the master branch
git checkout master
git pull
Checkout the feature branch
git checkout feature1
Rebase
git rebase master feature1
Push
Be careful! The use of "--force" in the following push will over-write the remote tracking branch with the rebased version, so if other people are working on this feature branch, bad things will happen.