I just wanted to quickly share a simple tool that I found, that I feel has dramatically improved my life. There are many times I find myself pushing something from my local repo to my repo on github. If I want to check it out on github and maybe do something like a pull request, I have to go to my web browser, navigate to github and then find the my repo in my account. Maybe I'm doing it wrong, but I personally don't really find GitHub's user interface to be very intuitive, so I don't really like this last step very much. I guess, in all, it doesn't really take a long time to do these things, but to me, it's kind of a pain and makes me unhappy. I ususally do this workflow at least a couple times a day and I don't like being unhappy that often.
So, I thought to myself, there's gotta be a git command that let's me go directly from the command line to the origin repo I'm currently in. It turns out that there's nothing built in that does this. This problem would definitely be a good candidate for a bash script if you happen to have the skills to do that. which I don't (yet). Then I found git-open.
It is exactly what I wanted. All I do is type
git open in my terminal and it will open up a new tab in my browser of the remote origin of the repo I am currently in. You can also specify a different remote and branch by adding on those parameters like this:
git open [remote-name] [branch-name].
That's pretty much all there is to it. It's dead simple, and only saves a few seconds but I love having it in my workflow.
If this sounds like something you would want to use too, just npm install it with this command:
npm install --global git-open
Check it out!