How to get a remote git URL from local repository
In this post we will give you information about How to get a remote git URL from local repository. Hear we will give you detail about How to get a remote git URL from local repositoryAnd how to use it also give you demo for it if it is necessary.
we are going to learn about how to get a remote git URL from a local repository.
Getting a remote git URL
To get a remote git URL, we can use the git config command followed by –get flag and remote.origin.url.
Here is an example:
git config --get remote.origin.url
Output:
https://github.com/saigowthamr/gatsbyblog-starter.git
Hope this code and post will helped you for implement How to get a remote git URL from local repository. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs