【发布时间】:2018-08-30 02:34:27
【问题描述】:
我想用 git 做命令链。我想完全克隆一个 repo,然后为该工作副本设置配置,更改 user.name、user.email。
我试过这个:
git clone https://repoUrl.git && git config user.name "Khaled" && git config user.email "test@server.com"
但是我收到了这个错误:
error: could not lock config file .git/config: No such file or directory
【问题讨论】:
-
git clone默认将其克隆放入新目录。在对新克隆执行其他操作之前,您必须将cd放入该目录。 -
谢谢。没错。我忘记了。
标签: git shell version-control terminal chaining