paulirish / git-open

Type `git open` to open the GitHub page or website for a repository in your browser.
MIT License
3.29k stars 247 forks source link

git open master if current branch does not have remote #157

Open gfx687 opened 4 years ago

gfx687 commented 4 years ago

Hello

First, thank for your work! This utility command is really useful and is exactly what I was thinking about

I want to suggest to open the master branch if the current branch doesn't have a connected remote branch. For example: I am doing some stuff on the BRANCH1 branch which doesn't have remote upstream. So if I type git open, master branch will open instead of 404 error in the browser (because the current branch doesn't exist in the remote repo)