Where is the git repository URL for remote is stored ?
the one that I get when I execute this : git config --get remote.origin.url
So the below command would set different for each repo by itself ?
git remote set-url origin ssh://newhost.com/usr/local/gitroot/myproject.git
The git remote command is essentially an interface for managing a list of remote entries that are stored in the repository's ./. git/config file.
You can list the remote branches associated with a repository using the git branch -r, the git branch -a command or the git remote show command. To see local branches, use the git branch command. The git branch command lets you see a list of all the branches stored in your local version of a repository.
All repo configuration would be inside /project-root/.git/config
file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With