To create (initialize) a loca Git repository for a project, go to the root of your project and run this command:
Now you can start tracking and commiting files:
git add .to stage your files.
git commit -m 'Describe your changes'to add a descriptive message about your file changes.
git push origin masterto push your changes to your remote repository.
To push your files to a remote repository, you need to set up a remote repo somewhere, for example on GitHub.