3

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

HelloCW
  • 843
  • 22
  • 125
  • 310

3 Answers3

3

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

Pavneet_Singh
  • 36,884
  • 5
  • 53
  • 68
1

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'

Rishi Raj
  • 79
  • 5
0

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

sebasira
  • 1,739
  • 1
  • 22
  • 41