How to create a new repository and push code in github?

  1. Open your project in visual studio code
  2. Click on Terminal -> New Terninal

3. Run git init command in terminal

4. Run git add . command   (C:\xampp\htdocs\w> git add .)

5. Run git commit -m “message” command (C:\xampp\htdocs\w> git commit -m “first commit”)

6. Create new repo in github.

7. Copy git https URL

8. Run https URL in terminal

9. In terminal run git push origin master command and enter credentials

10. Run git push –set-upstream origin master in terminal

Leave a Reply

Your email address will not be published. Required fields are marked *