$ git remote add origin https://github.com/user/repo.git # Set a new remote $ git remote -v # Verify new remote > origin https://github.com/user/repo.git (fetch) > origin https://github.com/user/repo.git (push)
# when you are not connected to the network, you can use this git config --get remote.origin.url
git remote add heroku https://git.heroku.com/arrecs.git git remote -v -> heroku https://git.heroku.com/arrecs.git (fetch) -> heroku https://git.heroku.com/arrecs.git (push) git remote remove heroku git remote -v
echo "# HarryFoods" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin < repo url > git push -u origin main
git init git commit -m "[message]" git remote add origin "github repository link" git push -u origin master
git remote add origin <remote repository URL> # Sets the new remote git remote -v # Verifies the new remote URL git push origin master