It will open your github project page from your terminal
Instructions for Linux, OS X users should make the necessary substitutions, if any, I know nothing about OS X.
Create ~/bin
mkdir -p "$HOME/bin"Add the directory to the beginning of the PATH variable inside .bashrc
echo 'PATH="$HOME/bin:$PATH"' >> "$HOME/.bashrc"This way, every new instance of Bash will now check for executable scripts in your bin directory.
Now you save the file opengit inside the ~/bin directory and make the file executable with:
chmod +x opengitIf for some reason you don't want/can't grant the permissions, you can run it like this:
bash opengitYou can do this to open Github on the current branch
$ opengit
or specify the branch
$ opengit remote_branch
- Fork it
- Create your feature branch (
git checkout -b my-awesome-feature) - Commit your changes (
git commit -am 'Making it better') - Push to the branch (
git push origin my-awesome-feature) - Create new Pull Request
- Wait for me 馃槃