How do I see my git remote url?
GitIntellij IdeaGit Problem Overview
I'm sure this is a very silly question, but I searched here and online and couldn't find an answer. I have a project setup in intellij to some git server, I just want to see the details (e.g. to send to someone else the URL so they can clone etc...) how do I simply display the current project's git remote settings within Intellij IDEA, not using the command line? (version 14)
Or do I have to go to the command line for that? (I know how to do it in the git command line)
Git Solutions
Solution 1 - Git
try
git remote show origin
it will show the URL or the remote repo
Solution 2 - Git
In WebStorm (almost same GUI like IntelliJ) it is done by clicking (Main menu) ->VCS->Git->Pull...
there you have the Remote url in the dialog window that appears.
Solution 3 - Git
In Android Studio(3.1.2)
that is based on Intellij IDEA
you can do
VCS -> Git -> Remotes...
//or
Git -> Manage Remotes...
https://i.stack.imgur.com/DYpTd.png" height="200">
Solution 4 - Git
You need only the remote repository URL, try below command in your terminal:
git config --get remote.origin.url
If you need all details and you are on a network that can reach the remote repository where the origin resides:
git remote show origin
Using git remote show
will display the information about this remote name. The first few lines should show:
C:\Users\tejassavaliya\my-example> git remote show origin
* remote origin
Fetch URL: [email protected]/my-example.git
Push URL: [email protected]/my-example.git
HEAD branch: master
Remote branches:
Solution 5 - Git
Solution 6 - Git
In order to find remote url, or you are connected to internet and want to know the url you can use below command where your .git folder placed
git config --get remote.origin.url
of if you want to see the full out put and you have the internet then you can use below command
git remote show origin
it will show you the URL that a local Git repository was originally cloned from.
hope this help