Skip to content

Instantly share code, notes, and snippets.

@haxorjim
haxorjim / gh
Last active June 12, 2020 14:37 — forked from anderskig/Repo
Open a project file on GitHub.
#!/bin/bash
#
# Open the specified file on GitHub. It will use the master branch by default:
#
# gh app/controllers/application_controller.rb
#
# Specify the current branch:
#
# gh -c app/controllers/application_controller.rb
#