Home > Software design >  How can I update my branch with what's on master?
How can I update my branch with what's on master?

Time:11-19

My project has main and master branches. How can I make my main up to date with master?

I have been pushing to master and all my updated work is on master, but when I try to deploy on vercel it produces an old copy that's on main. I tried to update my main with master and lost my working files but I still got them on master.

CodePudding user response:

You need to know which branch is your default, you can do this by clicking the branch name on the projects GitHub page. If the Main is the default then just merge into it with the code from master or rebase your project to use master as the default if your Master is the head then you just need to switch branches in git.

CodePudding user response:

make merge request with main..

  • Related