git link alias to fetch a link to a remote git repo
-
cargo install git-link- Explanation: Any
git-xxx123command/binary available in path is available as a git subcommand likegit xxx123. - This cargo install adds command
git-link, available by aliasgit link.
- Explanation: Any
-
Use any of the following commands inside a git repo:
# Print out the git repo's remote URL (even if the remote is via SSH)
git link
# Open the URL
git link --open
git link -o
# Print a link to a new PR for the current branch
git link pr
# Open the PR for the current branch
git link pr --open
git link pr --o