When starting a project I tend to init local git repository before I create one on GitHub. However when I’m ready to link the newly created remote repo to my local project using
git remote add {name} {git url} I tend to run in issues when I want to push my changes ( committed before I add the origin ) which I mainly commit based.
How can I add remote origin without running into these issues?