how to add a local project to git from terminal code example Example: git push existing code to new repository git remote add origin <remote repository URL>