Kha*_*jar 2 git shell terminal version-control chaining
我想用 git 进行命令链接。我想要克隆一个存储库,然后设置该工作副本的配置,更改 user.name、user.email。
我试过这个:
git clone https://repoUrl.git && git config user.name "Khaled" && git config user.email "test@server.com"
Run Code Online (Sandbox Code Playgroud)
但我收到了这个错误:
error: could not lock config file .git/config: No such file or directory
Run Code Online (Sandbox Code Playgroud)
git clone --config key1=value1 --config key2=value2 https://git.com/repo.git
Run Code Online (Sandbox Code Playgroud)
请参考: https: //git-scm.com/docs/git-clone