Add Angular project to already created empty repo


I have Angular CLI and I want to create new project ng new example but I have already created a private GitHub repo. How to add a project generated with Angular CLI to repo? just upload?


Should be something like this:

  1. Clone the repo that you already have on GitHub. git clone GITHUB_URL LOCAL_DIR_NAME
  2. ng new example and make sure that the content generated land on the project working directory.
  3. git status
  4. git add .
  5. git commit -m 'commit message here'
  6. git push

Answered By – user1785721

Answer Checked By – Robin (AngularFixing Admin)

Leave a Reply

Your email address will not be published.