Add a local project to GitHub

fkalisa
fkalisa
Jul 27, 2017 · 1 min read
  1. Create an empty repository on GitHub, you will get your_remote_repo_url.git
  2. Create a project on the local machine, for example an angular app
ng new my-app

3. In the local repository, set the origin where the local repository will be pushed

cd my-app
git remote add origin your_remote_repo_url.git

4. Push the changes

 git push -u origin master
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade