/git-open

Primary LanguageShell

git-open

Open files in a repository in the browser.

You can specify directories, files, and files with line numbers. Additionally, a branch can be provided.

Usage

Open the root of the repository in the browser:

git open

Open a file in the browser:

git open README.md

Open a file with a line number in the browser:

git open README.md:10

Install git-open

git clone https://github.com/takac/git-open
cd git-open
# Copy to a place on your $PATH
cp git-open /usr/local/bin
# Or create a symlink
ln -s $(pwd)/git-open /usr/local/bin

Tests

Run the tests with:

./test.sh