HelloCW
HelloCW

Reputation: 2295

How can I get remote GitHub URL in Android Studio?

I use GitHub in Android Studio, I pull a project from GitHub using URL.

At present, I hope to copy the URL of the GitHub project, but I find the URL can not be copied, you can see Image 1.

How can I get the GitHub URL of the project in Android Studio?

Image 1

enter image description here

Upvotes: 3

Views: 5226

Answers (3)

Pavneet_Singh
Pavneet_Singh

Reputation: 37404

You can view the remote links in Android Studio as:

  1. In menu, click VCS => git => remotes

enter image description here

  1. Then you can copy(select any remote url + cmd/ctrl + C), add, delete or edit the remote url:

enter image description here

Alternately, you can get the complete details in terminal using

git remote show origin

Upvotes: 3

Rishi Raj
Rishi Raj

Reputation: 99

I think this is the easier way (less typing):

$ git remote -v

You can add to your profile with: alias s='git remote -v && git status'

Upvotes: 1

sebasira
sebasira

Reputation: 1834

It Android Studio, in the bottom bar where the LogCat is, there's another window named Terminal open it, and the type:

git config --get remote.origin.url

The URL will be displayed and you can copy it from there

Upvotes: 0

Related Questions