How to get remote URI

I would like to get the address of my remote repository, ideally just one line. An ideal would be something like

$ git remote show origin fetch_url --some-params-im-not-aware-of
git://github.com/ask/celery.git
+3
source share
2 answers

Plain: git config remote.origin.url

+7
source

An easy way to display the URLs each of your remotes link to is git remote -v. For example:

$ git remote -v
origin git://git.kernel.org/pub/scm/git/git.git
+1
source

Source: https://habr.com/ru/post/1726225/


All Articles