git remotes code example
Example 1: get git remote url
git config --get remote.origin.url
Example 2: show remote git
git remote show origin
Example 3: git remote
git remote add origin <repository url>
git remote
git config --get remote.origin.url
git push origin master
git remote remove origin
Example 4: git remote
git remote
git remote add origin <The url of local github repository>
git remote add upstream <The url where you have forked repository>
Example 5: show remote git
git config --get remote.origin.url
Example 6: git remote
git remote add origin https://github.com/xxx/xxx-new.git
git branch -M main
git push -u origin main