@cnbcool/cnb-cli 1.9.5 → 1.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/index.js +48 -48
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -111,6 +111,7 @@ cnb login
|
|
|
111
111
|
推荐只为 CNB 域名配置 helper,避免影响其他 Git 站点:
|
|
112
112
|
|
|
113
113
|
```bash
|
|
114
|
+
git config --global credential.https://cnb.cool.helper ""
|
|
114
115
|
git config --global credential.https://cnb.cool.helper "!cnb git-credential"
|
|
115
116
|
git config --global credential.https://cnb.cool.useHttpPath true
|
|
116
117
|
```
|
|
@@ -119,10 +120,13 @@ git config --global credential.https://cnb.cool.useHttpPath true
|
|
|
119
120
|
|
|
120
121
|
```ini
|
|
121
122
|
[credential "https://cnb.cool"]
|
|
123
|
+
helper =
|
|
122
124
|
helper = "!cnb git-credential"
|
|
123
125
|
useHttpPath = true
|
|
124
126
|
```
|
|
125
127
|
|
|
128
|
+
> **注意**:第一行空的 `helper =` 用于清除全局 `[credential]` 段继承的 helper(如 Git Credential Manager),确保只使用 cnb 的 credential helper。如果你没有配置其他全局 credential helper,可以省略这一行。
|
|
129
|
+
|
|
126
130
|
### 3. 使用 HTTPS 地址操作仓库
|
|
127
131
|
|
|
128
132
|
```bash
|