I've been working on a webpage and I've come across an issue with having my local Git and Github synced. This is what I've been doing:
- I started off with the master branch
- I created a branch called "header" for the page's header.
- I committed the changes and pushed them up to Github
- I did a PR and merged "header" with master
- I repeated this step for the "main" branch
- I repeated this step for the "footer" branch
Now, I've been switching randomly from "header", "main", and "footer" as I keep building my webpage.
I now have the problem with my Gibhub showing me these messages:
For the "header": This branch is 8 commits behind master
For the "main": This branch is 3 commits behind master
For the "footer": This branch is 1 commit ahead of master
I tried to PR as much as possible so that my "master" branch has EVERYTHING that I want in it, and that's currently what I have. How do I have them synced up with the master? Did I screw this up big time?
Thank you.