Using Git Remotely
Creating a new remote repository
When you want to create a new remote repository, you can do this through GitHub. You should not initialize a README, add a gitignore or give it a license. You will do those things later.
Connecting a local repository to a remote repository
Every remote repository on GitHub has its own HTTPS link, you should copy that.
You can then initialize the new repository on your machine by using the
git init
command.Adding the origin can be done with the command
git remote add origin
+ the https link you just copied from GitHub.You can check if it worked by using the command
git remote -v
, which will show you what the origin of the repository is.