How to add remote to git

When creating a new project in my local machine at some point I want to add it to my GitHub account.

On the new project click the green code button and copy the Clone - SSH repository text.

remote-1.png

Now go to your local git project you add to Github and paste the text to the end of the git remote add command.

git remote add origin [email protected]:meshu-dev/meshu.git

Then fetch from the GitHub repository to make sure it works.

git fetch