-
在菜单栏中,选择 GitHub Desktop 菜单,然后单击 Install Command Line Tool(安装命令行工具)。
-
打开终端。
-
要对最近打开的仓库启动 GitHub Desktop,请键入
github
。 要对特定仓库启动 GitHub Desktop,请使用github
命令,然后输入仓库路径。$ github /path/to/repo
您还可以更改为仓库路径,然后键入
github .
以打开该仓库。$ cd /path/to/repo [repo]$ github .
-
打开命令提示。
-
要对最近打开的仓库启动 GitHub Desktop,请键入
github
。 要对特定仓库启动 GitHub Desktop,请使用github
命令,然后输入仓库路径。C:\Users\octocat> github path\to\repo
您还可以更改为仓库路径,然后键入
github .
以打开该仓库。C:\Users\octocat> cd repo\myrepo C:\Users\octocat\repo\myrepo> github .