如何使用git和chain git config user.name进行克隆
我想用git做命令链接。我想克隆一个回购协议,然后设置该工作副本的配置,更改user.name、user.email 我试过这个:如何使用git和chain git config user.name进行克隆,git,shell,version-control,terminal,chaining,Git,Shell,Version Control,Terminal,Chaining,我想用git做命令链接。我想克隆一个回购协议,然后设置该工作副本的配置,更改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 su
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
克隆后,您尚未在gitdir文件夹中。请遵循
1) git clone https://repoUrl.git
现在您需要输入repo dir
2) cd gitfolder
3) git config user.name "Khaled" && git config user.email "test@server.com"
克隆后,您尚未在gitdir文件夹中。请遵循
1) git clone https://repoUrl.git
现在您需要输入repo dir
2) cd gitfolder
3) git config user.name "Khaled" && git config user.email "test@server.com"
使用@torek comment解决了此问题
git clone
确实将其克隆放在了一个新目录中,在调用configs之前,我需要将其cd放入其中,因此下面是固定版本:
git clone https://repoUrl.git customDirectory && cd customDirectory && git config user.name "Khaled" && git config user.email "test@mail.com"
使用@torek comment解决了此问题
git clone
确实将其克隆放在了一个新目录中,在调用configs之前,我需要将其cd放入其中,因此下面是固定版本:
git clone https://repoUrl.git customDirectory && cd customDirectory && git config user.name "Khaled" && git config user.email "test@mail.com"
试着用这个它对我有用:-
git clone https://github.com/rtyley/small-test-repo.git && git config --global user.name "name" && git config --global user.email "xxxxxxx@gmail.com"
试着用这个它对我有用:-
git clone https://github.com/rtyley/small-test-repo.git && git config --global user.name "name" && git config --global user.email "xxxxxxx@gmail.com"
请参考:
请参考:
git clone
默认情况下将其克隆放入新目录。在对新克隆执行其他操作之前,您必须将cd
放入目录中。谢谢。没错。我忘记了。git clone
默认情况下将其克隆放入新目录。在对新克隆执行其他操作之前,您必须将cd
放入目录中。谢谢。没错。我忘了。这是关于将命令链接在一行中。您是在单独的命令中执行这些操作的。在cmdIt中添加行(&cd)gitfolder是指将命令链接到一行中。您可以在单独的命令中执行这些操作。在cmd中添加行和cd文件夹(&D)