Skip to content

Instantly share code, notes, and snippets.

@sugamasao
Last active April 23, 2020 03:42
Show Gist options
  • Save sugamasao/798be7f6683b9365d45222d38340e6ea to your computer and use it in GitHub Desktop.
Save sugamasao/798be7f6683b9365d45222d38340e6ea to your computer and use it in GitHub Desktop.
git browse foo/bar.txt 10 でGitHubのリポジトリ開くくん
[alias]
browse = !"f() { open $(git remote get-url origin)/tree/$(git rev-parse HEAD)/${1}#L${2}; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment