Search code examples
eclipsegithubpushcommit

Push to main instead of master from eclipse to git


I have been searching and I found git commands to change the repository but I'm new on github and I don't know how to make that from eclipse, everytime I push I make the changes on the master branch instead of the default main, when I try to push the main it says non fast forward and I can't do it, thanks.


Solution

  • Select Team > Advanced > Rename Branch Rename local as main Rename remote to main