I have a local git repository and needs to check if any upstream is linked with this repository. Since I don't need any other details, the command should be lightweight and should work offline.
The command
git ls-remote
cannot be used, since it checks online. I need a command that doesn't use any network operation.
git remote -v
will list a repository's known remote repositories. It doesn't require a network connection (just tested it myself).
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