how to set remote code example
Example 1: git set remote
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 2: adding remote origin git
git remote add origin <link>
Example 3: git add origin command
# To add origin
$ git remote add origin <github repo link>
Example 4: add remote in git
git remote add origin [email protected]:portfolio/space.space_name.git#set a new remotegit remote -v#Verify new remoteorigin [email protected]:portfolio/space.space_name.git (fetch)origin [email protected]:portfolio/space.space_name.git (push)