ADD PROJECT TO GIT Step to step add project to git Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub. git init git add . git commit -m "First commit" git remote add origin "repository URL" git push -u origin master