Skip to content

Open current repo in browser from command line.

License

Notifications You must be signed in to change notification settings

Meowu/open-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open-repo

open-repo is a command-line tool that quickly opens the remote page of your current Git repository (supporting GitHub and GitLab) in your default browser.

Features

  • Open repository main page
  • Open specific issues (Github only)
  • Open specific pull requests (Github only)
  • Open issues list or pull requests list (Github only)

Usage

Execute the following commands under any local directory of a GitHub or GitLab repository:

Open main repository page

open_repo

Open a specific issue

open_repo --issue ISSUE_NUMBER

Open a specific pull request

open_repo --pull PR_NUMBER

Open issues list or pull requests list

open-repo --issue
open-repo --pull

⚠️ Caution

Don't use --pull and --issue arguments at the same time.

open_repo --pull PR_NUMBER --issue ISSUE_NUMBER # Don't do this!

Error Handling

If used in a non-Git repository directory, the tool will display an error message and exit.

Contributing

Issues and pull requests are welcome to help improve this project.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Open current repo in browser from command line.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages