mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-11-13 09:16:10 +08:00
@@ -6,9 +6,9 @@
|
||||
|
||||
在 Linux 和 OS X 的机器上 Git 是默认安装的,在 Windows 上你必须先自行安装,参见 [GitHub 帮助页面](http://help.github.com/win-set-up-git/)。
|
||||
|
||||
这里将通过为第 9.8 节中的 uc 包创建一个 git 仓库作为演示
|
||||
这里将通过为[第 9.8 节](09.8.md)中的 `uc` 包创建一个 git 仓库作为演示
|
||||
|
||||
进入到 uc 包目录下并创建一个 Git 仓库在里面: `git init`。
|
||||
进入到 `uc` 包目录下并创建一个 Git 仓库在里面: `git init`。
|
||||
|
||||
信息提示: `Initialized empty git repository in $PWD/uc`。
|
||||
|
||||
@@ -32,7 +32,7 @@ git push -u origin master
|
||||
|
||||
## 9.9.2 从 GitHub 安装
|
||||
|
||||
如果有人想安装您的远端项目到本地机器,打开终端并执行(NNNN 是你在 GitHub 上的用户名):`go get github.com/NNNN/uc`。
|
||||
如果有人想安装您的远端项目到本地机器,打开终端并执行(`NNNN` 是你在 GitHub 上的用户名):`go get github.com/NNNN/uc`。
|
||||
|
||||
这样现在这台机器上的其他 Go 应用程序也可以通过导入路径:`"github.com/NNNN/uc"` 代替 `"./uc/uc"` 来使用。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user