git set remote code example
Example 1: git update remote origin
git remote set-url origin new.git.url/here
Example 2: get git remote url
git config --get remote.origin.url
Example 3: git set origin
git remote -v
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 4: git check upstream url
git remote show origin
Example 5: change remote url git
git remote set-url origin https://hostname/USERNAME/REPOSITORY.git
Example 6: git set remote
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git