File
git-browse
git browse is that the command browses the files of the repository which comes from gitlab, github, bitbucket or other sites.
Testcases
- If the repository comes from gitlab, open a url like
https://gitlab.com/<user_or_group>/<repo>/-/blob/<commit_or_branch>/<filename>#L<line1>-<line2>
- If the repository comes from github, open a url like
https://github.com/<user_or_org>/<repo>/blob/<commit_or_branch>/<filename>#L<line1>-L<line2>
- If the repository comes from bitbucket, open a url like
https://bitbucket.org/<user_or_org>/<repo>/src/<commit_or_branch>/<filename>#lines-<line1>:<line2>
- If the repository comes from other sites, open a url to the
origin and cannot locate to something about line of one file
- If the OS is mac, open via command
open
- If the OS is Git-Bash on windows, open via command
start
- If the OS is WSL on windows, open via commnd
start
- If the OS is linux, open via command
xdg-open
- If the OS is unknown, open via command
xdg-open
File
git-browse
git browseis that the command browses the files of the repository which comes from gitlab, github, bitbucket or other sites.Testcases
https://gitlab.com/<user_or_group>/<repo>/-/blob/<commit_or_branch>/<filename>#L<line1>-<line2>https://github.com/<user_or_org>/<repo>/blob/<commit_or_branch>/<filename>#L<line1>-L<line2>https://bitbucket.org/<user_or_org>/<repo>/src/<commit_or_branch>/<filename>#lines-<line1>:<line2>originand cannot locate to something about line of one fileopenstartstartxdg-openxdg-open