A git-open command similar to paulirish/git-open written in rust.
Usage: git-open [OPTIONS] [REMOTE]
Arguments:
[REMOTE] Which remote to open
Options:
-c, --commit <COMMIT> Commit hash
-n, --no-branch Don't open current branch
-p, --path <PATH> Path of the git repository
-v, --verbose... More output per occurrence
-q, --quiet... Less output per occurrence
-h, --help Print help information
- open current repository
git open=>https://github.com/Nachtalb/git-open-rs/tree/master - open given remote
git open my_remote=>https://github.com/my_remote/git-open-rs/tree/master - open specific hash
git open -c 1234abcd=>https://github.com/my_remote/git-open-rs/tree/1234abcd> - open repository at specific path
git open -p /my/git/repo=>http://some.git/repo.git - prevent opening of current branch
git open -n=> with branchfoobarchecked outhttps://github.com/Nachtalb/git-open-rs/instead ofhttps://github.com/Nachtalb/git-open-rs/tree/foobar - Support resolving hosts through custom ssh configs
- open branch in correct remote (in case it doesn't exist in all remotes)