I'm learning to code on TOP and I have been going between my iMac and my Macbook Air. I've installed git on both machines and provided SSH keys for both. Each of my consoles have a local repository and I thought they both can push to Github just fine, but tonight I'm having issues.
I want to be able to go between both of my consoles as I often leave home and like to work on my Macbook. I want to make sure that they both can push/pull from the Github repository and have the most current version at any time.
How is the best way to go about this? Should I have my main branch be one and then create another branch for the other console?
When I run - git status - they both say "On branch main" - I'm wondering if this is the conflict here. It also says when I do - git push - that my branch and 'origin/main' have diverged.
What brought this on is I use VSC editor on both machines and when I went to update the workflow with the source code section and sync changes I got the following error message and now I'm in a rabbit hole trying to figure this out.
Essentially, I want to be able to work from both machines with the same credentials and I'm not sure how to do that.
Please help or reference a thread that could point me in the right direction. VSC Editor Popup