We started with local git repo. Then we also committed to remote repo. Once I have a remote repo, why would I still need local repo? Can I just get rid of it and if so how?
Letās say I keep both local and remote repos. Getting confused on which branch of local/remote is active. Are my code changes getting committed in both my local and remote repos?
You have to keep your local repo. Thatās where all of your work is. You cannot work in a remote, only push/pull completed changes. In addition to the Stack Overflow post Cosmin referred you to, I highly recommend our āBeginning Gitā and āMastering Gitā video courses. They will answer these questions and many more.