Skip to content

Instantly share code, notes, and snippets.

@roeniss
Last active May 8, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roeniss/4f53399527a8a0de0f9a7ffd04cfa45e to your computer and use it in GitHub Desktop.
Save roeniss/4f53399527a8a0de0f9a7ffd04cfa45e to your computer and use it in GitHub Desktop.
open git remote repository with Chrome
#!/bin/bash
# Using Chrome, open a github page of remote repo on current directory.
# tested on MacOS
REMOTE=$(git remote -v | sed -n '1,1p' | sed 's/.*https/https/' | sed 's/\ .*//')
open -a Google\ Chrome $REMOTE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment