I have done checkout from branch 2.0 .
Now I made changes to one of the file.
I want to commit it to branch i.e 2.0 branch,
So I right click on file , select team->commit option
I ask me to select branch .
So I selected 2.0 and repository url.
When I click ,
commit & push
You try to push code from branch different to master and you cant.
# commit all your changes to the desired branch (develop is i understand you correctly) # checkout the master branch git checkout master # merge the changes from develop into master git merge develop # now push the changes git push origin master.
The git merge created a new merge commit and now you can push it back to master.