-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
File
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
originand 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
spacewander
Metadata
Metadata
Assignees
Labels
No labels