Let's say that you have created a project using @vue/cli or some other cli locally. Now you created a github repo. Also at the time of creating the repo you have set the LICENSE file from the web creation portal.
Now if you are using VS Cose, here are the following commands that you need to run for the first time
to ensure the remote repo gets properly connected with your project.
git remote add origin https://<AccountName>.github.com/somerepo.git
git pull origin master --allow-unrelated-histories
git push -u origin master