git: merging two branches and commits ahead
$> git checkout master $> git merge -Xtheirs v2
now “git status” returns:
Your branch is ahead of ‘origin/master’ by 201 commits.
How can I “align” my remote repos with the stuff I have locally?
2 Solutions collect form web for “git: merging two branches and commits ahead”
You need to push it to remote repo.
git push origin master will do it.
You have it backwards you should be merging v2 into master. This will bring master up to date, and will allow you to keep working in v2 afterwards.
Once you have your master up to date, you push it to the remote server with.
That will push your synced branches from your local machine to your remote branch