Print github url for the current url

git remote -v | sed -n '/github.com.*push/{s/^[^[:space:]]\+[[:space:]]\+//;s|git@github.com:|https://github.com/|;s/\.git.*//;p}'
Works for repos cloned via ssh or https.
Sample Output
# Cloned using https

$ git remote -v
origin  https://github.com/bartonski/barton-unit-circle.git (fetch)
origin  https://github.com/bartonski/barton-unit-circle.git (push)
$ git remote -v | sed -n '/github.com.*push/{s/^[^[:space:]]\+[[:space:]]\+//;s|git@github.com:|https://github.com/|;s/
\.git.*//;p}'
https://github.com/bartonski/barton-unit-circle

# cloned using ssh
$ git remote -v
origin  git@github.com:bartonski/barton-unit-circle.git (fetch)
origin  git@github.com:bartonski/barton-unit-circle.git (push)
 Fri Oct 11 12:44:43 bartonc@BartonCW10L: /tmp/barton-unit-circle
$ git remote -v | sed -n '/github.com.*push/{s/^[^[:space:]]\+[[:space:]]\+//;s|git@github.com:|https://github.com/|;s/
\.git.*//;p}'
https://github.com/bartonski/barton-unit-circle

1
By: bartonski
2019-10-11 16:50:22

What Others Think

are there any recent updates with hair extensions baton rouge?
looneyhans · 82 weeks and 3 days ago
private investigator wichita ks I think I need more information
yeoyeo · 76 weeks and 1 day ago
love this soo much! jet
sammm · 73 weeks ago
Listen to the https://hireessaywriter.onl Business becomes a new and dangerous equation on a humanly overpopulated world. Too much business is killing the world and are you teaching that yet?
robertbarna12 · 59 weeks and 2 days ago
Can I still change mine? cost of kitchen cabinets
geebranz · 58 weeks and 2 days ago
Finance Payment Calculator A course to find just how much and exactly how often your compensation will probably be. Examine choices and buy one that is certainly adequate for you. Instagram Likes kaufen
wenilak444 · 29 weeks and 4 days ago
Hi, have you ever before asked yourself to write about Nintendo or PSP? ?????????? ???? ??????
wenilak444 · 29 weeks and 2 days ago
Bar and Chain Oil Beyond Performances is an Amsoil Dealer that provides the best Amsoil diesel oil, amsoil motor oil, best transmission fluid, and engine lubricants. https://beyondperformances.com/
wenilak444 · 29 weeks ago
I am typically to blogging and i actually appreciate your website content continuously. The article has truly peaks my interest. Let me bookmark your internet site and maintain checking for brand spanking new data. Canada Visa Online
wenilak444 · 28 weeks and 4 days ago
The most important thing is that the texture is better and it is comfortable to sit. cheap Sofas - Panana.co.uk 040227414 7 meters tall, it is enough to apply a sofa with a diameter and depth of about 95 cm, while those who exceed this height should feel comfortable about 105 cm.
wenilak444 · 28 weeks and 3 days ago
“Many people got trouble with their loans, hope you don’t get the same problem” US VISA ONLINE
wenilak444 · 27 weeks and 6 days ago
I’m happy! It’s pleasant to see someone really educated about what they do. Hold up the excellent perform and I’ll return for additional! Many thanks! SEO Dover
nakav51247 · 27 weeks and 3 days ago
There is noticeably a bundle comprehend this. I assume you’ve made certain nice points in functions also. Kanada vizasi uchun ariza shakli
wenilak444 · 26 weeks and 3 days ago
Very good post, thank you a lot for sharing. Do you have an RSS feed I can subscribe to? http://www.MM88UP.com
wenilak444 · 25 weeks and 6 days ago
Where exactly can I get a hold of this page layout? ?????
nakav51247 · 25 weeks and 4 days ago
I couldn’t be more in agreement. I’d like your opinion, do you see more of the same for the days and months ahead? I am really intrigued by your site and your posts. www.allpgslot.com
wenilak444 · 25 weeks and 3 days ago
Urban Garden Landscaping Services in Singapore offers one of the best landscape services in Singapore for commercial and residential areas. home garden maintenance services
wenilak444 · 25 weeks and 2 days ago
Every time my spouse and i grew to be on the internet site while sporting certain awareness quickly a certain amount of tiny bit submits. Desirable way of end, I shall be book-marking currently get types complete spgs appropriate way up. ?????????????????
wenilak444 · 24 weeks and 5 days ago
I simply could not go away your website prior to suggesting that I really loved the standard information an individual provide for your visitors? Is going to be again ceaselessly to investigate cross-check new posts vîzeya ge?tyarî ya Hindistanê
wenilak444 · 24 weeks and 5 days ago
I’m a blog crazed person and i love to read cool blog like yours..”,,~ xo slot
wenilak444 · 24 weeks and 4 days ago
Easily, the post is really the greatest on this laudable topic. I concur with your conclusions and will thirstily watch forward to your future updates. Saying thank will not just be sufficient, for the great c lucidity in your writing. I will instantly grab your rss feed to stay privy of any updates. Solid work and much success in your business enterprise! VISUM TIL INDIA
wenilak444 · 23 weeks and 5 days ago
where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar midnight mint psychedelic chocolate bar origin mango psilo gummies 0.25g-1g origin strawberry psilo gummies 0.25g-1g penis envy psychedelic chocolate bar psilocybin cube gummies vegan dark chocolate psychedelic chocolate bar microdoses brain capsules 50mg-200mg chill capsules 50mg-200mg clarity capsules 50mg-200mg health capsules 50mg-200mg love capsules 50mg-200mg mood capsules 50mg-200mg pure capsules 50mg-200mg social capsules 30 pack 350mg social capsules 5 pack 350mg
johnson20007 · 20 weeks and 6 days ago
IT LABS PRO est la meilleure société de services d'ingénierie informatique au Maroc, en vous déplaçant à son siège à Marrakech - gueliz vous allez bénéficier des meilleurs services de création de sites et applications de gestion web, cette dernière privilégie ses clients et mettez à leur disposition toutes ses ressources pour l'accomplissement de leurs projets tout en offrant son expertise en conseillant ses clients et les accompagnant pour améliorer leurs images sur intérêt et mieux gérer leurs business. Creation site web maroc
itlabspro · 13 weeks and 1 day ago
Greetings! I’m Qwerty(aka aoom123), the creator of a gaming blog named ?????PG. Feel free to visit our website and support us!
qwertiiz · 10 weeks and 4 days ago
Working from home and getting services online is getting common in this expert and digital world. Every industry is getting modern and the world is moving more advanced. The [evolution telemedicine services](https://www.evolutiontelemedicine.com/) bring the revolution in the health and medical industry. Get the best and health professional health caretakers at your fingertips and get every health professional near to you. No need to visit any physical address and make an extra appointment.
ashleykeith · 9 weeks and 2 days ago
Working from home and getting services online is getting common in this expert and digital world. Every industry is getting modern and the world is moving more advanced. The evolution telemedicine services bring the revolution in the health and medical industry. Get the best and health professional health caretakers at your fingertips and get every health professional near to you. No need to visit any physical address and make an extra appointment.
ashleykeith · 9 weeks and 2 days ago
If you love to wear movies and celebrity outfits so So here's the Tom Cruise bomber jacket for you, this jacket is available in two different types of leather so upgrade your style with this amazing tom cruise leather jacket.
emmawatson3848 · 3 weeks ago
Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com
seofox · 2 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: