Reputation: 305
I have a git repository with 2 branches. I want to move all the files of the 2nd branch to the main branch. Is it possible to do so? If yes, how?
Upvotes: 1
Views: 4371
Reputation: 4875
You can‘t move files, but you can merge one branch to another. So both branch have the same files.
git checkout main
git merge <your 2nd branch>
Upvotes: 3