Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I determine the URL that a repository was originally initialized from android repo tool with repo init -u <URL>?

Tags:

git

repo

I have initialized repo using repo tool with command repo init -u . How can I determine the url later ? As that of any git repository we use below command, git config --get remote.origin.url Or git remote show origin

like image 469
Prashant Adlinge Avatar asked Dec 05 '25 14:12

Prashant Adlinge


1 Answers

To get the URL corresponding to repo init -u <URL>

At the top of your workspace

$ cd .repo/manifests 
$ git remote -v

To get the branch corresponding to repo init -b <branch>

At the top of your workspace

$ cd .repo/manifests
$ git rev-parse --abbrev-ref --symbolic-full-name @{u}

mostly stolen from this answer.

To get the manifest name corresponding to repo init -m <manifest.xml>

See this answer.

like image 153
Hugo y Avatar answered Dec 08 '25 06:12

Hugo y



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!