Open the current project on Github by typing gh

git remote -v | grep fetch | sed 's/\(.*github.com\)[:|/]\(.*\).git (fetch)/\2/' | awk {'print "https://github.com/" $1'} | xargs open
Written for Mac OSX. When you are working in a project and want to open it on Github.com, just type "gh" and your default browser will open with the repo you are in. Works for submodules, and repo's that you don't own. You'll need to copy / paste this command into a gh.sh file, then create an alias in your bash or zsh profile to the gh.sh script. Detailed instructions here if you still need help: http://gist.github.com/1917716

1
2012-04-15 20:48:46

What Others Think

Or you just drop that script in your path...
untitaker · 561 weeks and 6 days ago
Outstanding article! I want people to know just how good this information is in your article. Your views are much like my own concerning this subject. I will visit daily your blog because I know. It may be very beneficial for me. rv door lock replacement
KayGasaway · 39 weeks and 4 days ago
Thanks for the blog post buddy! Keep them coming... cyber security consulting companies
Audrey10 · 33 weeks and 3 days ago
Great survey, I'm sure you're getting a great response. WPS office for students
KayGasaway · 32 weeks and 3 days ago
This blog website is pretty cool! How was it made ! Paintless Dent Removal San Diego
KayGasaway · 31 weeks and 1 day ago
Well-Written article. It will be supportive to anyone who utilizes it, including me. Keep doing what you are doing – can't pause to read more posts. Thanks for the precious help. nysc portal
KayGasaway · 31 weeks and 1 day ago
Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing android tv box
KayGasaway · 31 weeks ago
It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing. ????? pg ??? true wallet
KayGasaway · 30 weeks and 6 days ago
I got too much interesting stuff on your blog. I guess I am not the only one having all the enjoyment here! Keep up the good work. tea burn
Audrey10 · 30 weeks and 4 days ago
BBM seems to really have a better contact grid as compared to WhatsApp. Here you have a few chosen individuals to communicate with. However, with WhatsApp you may have all on your contact grid. how to get into someones whatsapp account
Audrey10 · 30 weeks and 4 days ago
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. naija news
KayGasaway · 30 weeks ago
Sind Sie auf der Suche nach einem echten Führerschein? Dann sind Sie bei uns genau richtig. Wir garantieren, dass alle unsere Führerscheine legal ausgestellt, registriert und von europäischen Behörden genehmigt sind. Wenn Sie den Führerschein kaufen oder verlängern wollen, bestellen Sie ihn jetzt auf unserer offiziellen Website. kaufen fuhrerschein
KayGasaway · 30 weeks ago
Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. masonic regalia
KayGasaway · 27 weeks and 6 days ago
Social Media Profiling' is a modern method which is in trend nowadays. The growing popularity of social media platforms like Facebook, Twitter, Instagram and Snapchat led to the invention of this unique technique. how to hack someones texts
KayGasaway · 27 weeks and 1 day ago
Only strive to mention one's content can be as incredible. This clarity with your post is superb! Thanks a lot, hundreds of along with you should go on the pleasurable get the job done. ??????
Audrey10 · 26 weeks and 3 days ago
There is noticeably a bundle comprehend this. I suppose you have made specific nice points in features also. http://annoyed1heal.com/
Benjaminlee · 22 weeks and 3 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies baby pug puppies for sale pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
Perfecthomepugs · 13 weeks and 5 days 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: