[HELP] Sync develop branch with upstream develop

tushar

New member
My local development branch is not synchronized with the upstream development branch. I'm working on the main branch, and I've created a develop branch that is not in sync with upstream develop. The develop branch has the most recent version, so I'm confused between the main branch and the develop branch, which I should work on and sync with upstream.
I am assuming that I have to work on the main branch (to find bugs and features) and make a PR on the develop branch.
OR
Sync local branch with upstream develop.
 
Last edited:
All the contributions you make will be made against the develop branch not main and hence all the feature branch you will create will track upstream develop.
To sync your local branch:
git fetch upstream
git checkout develop
git merge upstream/develop
Then create your feature branches from develop.
 
Back
Top