开发者

How to get a remote URI

开发者 https://www.devze.com 2022-12-14 08:08 出处:网络
I\'d like to get an address of my remote reposito开发者_如何转开发ry, ideally one line only. Ideal would be something like

I'd like to get an address of my remote reposito开发者_如何转开发ry, ideally one line only. Ideal would be something like

$ git remote show origin fetch_url --some-params-im-not-aware-of
git://github.com/ask/celery.git


Simple: git config remote.origin.url


A simple way of showing the URLs that each of your remotes refers to is git remote -v. For example:

$ git remote -v
origin git://git.kernel.org/pub/scm/git/git.git
0

精彩评论

暂无评论...
验证码 换一张
取 消