How can I display the location of remotes for a git repository?
-
09-03-2021 - |
Question
Is there a way to display all known information about a repository's remotes, either individually or all at once?
Solution
It's easy:
git remote show
git remote show <specific-remote>
OTHER TIPS
You can see the raw configuration
cat .git/config
or use the remote
subcommand
git remote -v
git remote
should work in this case.
git remote show origin
(or any other remotes you may have).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow