I’ve been working on a repository for about a year now and have 23 branches. I’m the only one, no one else is working on this repository. I’ve always committed my changes and pushed them up to the remote origin on GitHub. I see that each branch is successively ahead of Main, my latest branch is 23 commits ahead of Main. I found this is a problem when I got a new laptop and cloned the repository and noticed that what I got is way behind where I was on my other laptop. What is the best/easiest way to merge all those branches to Main so when I clone the repository I get the latest?
I haven’t tried anything yet because I know I can severely screw up this repository so I don’t want to ruin it. I don’t know if I could just merge the latest branch or do I have to start at the first branch and merge each one?
programmerken0068 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
5