how to set remote git code example
Example 1: git set origin
git remote -v
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 2: git change remote
$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 3: git remote chage url
git remote -v
git remote set-url origin https://github.com/user/repo2.git
git remote -v
Example 4: github add new origin
git init .
git remote add origin <http/someURL>
git pull origin master
Example 5: github remote
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
Example 6: add remote in git
git remote add origin [email protected]:portfolio/space.space_name.git