A command line tool to extract a git repository remote url for a specific reference without using git.
Just type in terminal
grurl --remote=origin --path=repo/path
orgrurl
for default mostly used remote origin in the current path.
git clone https://github.com/mo7amed-3bdalla7/grurl.git
.cd grurl
.go install
orgo build -o /usr/bin/grurl
for global installation.- Just cd to any git repo add run
grurl
.
Usage of grurl:
-list
list all remote names with URLs and exit
-path string
to set the git repository path (default ".")
-remote string
to set the remote name you for required url (default "origin")
- Handle remote http urls.
- Handle ssh urls.
- Handle git urls.
- Handle different fetch and push URLS.