git set default origin code example
Example 1: get git remote url
git config --get remote.origin.url
Example 2: git set origin
git remote -v
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 3: set git origin
git remote add origin [email protected]:portfolio/space.space_name.git
Example 4: show remote git
# when you are not connected to the network, you can use this
git config --get remote.origin.url