the following steps describe how to add your local project to your git.
create a new project folder and open it in vs code, then create a new file named “index.html” and add some text to it.
open git bash and change the path to your project folder,then follow the commands
- git init // it creates .git file
- git add . // stages all your project files
- git commit -m “initial commit” // type any message for your first commit
- go to your github, create a new repository.