git remote get-url example
Example 1: get git remote url
git config --get remote.origin.url
Example 2: git show remote url
git config --get remote.origin.url
Example 3: git remote
git remote add origin https://github.com/xxx/xxx-new.git
git branch -M main
git push -u origin main