跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 分享一个 MacOS 小工具 gopen - 快速打开 Git 仓库远程 URL

发表于

在命令行里面经常需要在浏览器里面打开 github 上的 repo ,这个对外来说非常高频,我希望像操作系统里面的 open 命令一样简单。

使用过各种小工具都不方便,比如官方的 gh, 都不方便。就自己开发了一个,分享给有需要的同学吧 https://github.com/libratiger/gopen

功能

  • 自动打开远程 URL:从当前目录或指定目录的 Git 仓库中提取远程 URL ,并在浏览器中打开。
  • SSH 转换为 HTTPS:自动将 SSH URL 转换为 HTTPS URL ,以便在浏览器中访问。
  • 交互模式:支持用户通过交互界面选择要打开的多个远程 URL 中的某一个。
  • 目录指定:用户可以指定一个目录,从该目录下查找并打开远程 URL 。

安装

你可以通过 Homebrew 安装 gopen

brew tap libratiger/homebrew-tap
brew install gopen

使用方法

默认模式

在当前 Git 仓库目录中运行 gopen,它会自动打开第一个远程 URL 。

gopen

指定目录

在指定目录下查找并打开远程 URL 。

gopen /path/to/git-repo

交互模式

使用 -i 参数进入交互模式,用户可以选择要打开的远程 URL 。

gopen -i

或在指定目录下使用交互模式:

gopen /path/to/git-repo -i

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.