草庐IT

SOME_NAME

全部标签

git - `--name` 选项没有 't work with ` git submodule add` 命令

我想添加一个不同名称的git子模块,例如:gitsubmoduleadd--namefoogit@bitbucket.org:ironsand/cookbook-foo.git我想创建一个名为foo的git子模块目录,但是创建的存储库名称为cookbook-foo。很可能我做错了什么,但我不知道哪里出了问题。如何更改git子模块目录的名称? 最佳答案 不要混淆子模块的路径和名称。你想跑gitsubmoduleaddgit@bitbucket.org:ironsand/cookbook-foo.gitfoo/相反。有关详细信息,请参阅

git - `--name` 选项没有 't work with ` git submodule add` 命令

我想添加一个不同名称的git子模块,例如:gitsubmoduleadd--namefoogit@bitbucket.org:ironsand/cookbook-foo.git我想创建一个名为foo的git子模块目录,但是创建的存储库名称为cookbook-foo。很可能我做错了什么,但我不知道哪里出了问题。如何更改git子模块目录的名称? 最佳答案 不要混淆子模块的路径和名称。你想跑gitsubmoduleaddgit@bitbucket.org:ironsand/cookbook-foo.gitfoo/相反。有关详细信息,请参阅

git - `--tag-name-filter cat` 什么时候需要 `git filter-branch` ?

gitfilterbranch的手册页说:use"--tag-name-filtercat"tosimplyupdatethetags.后来它甚至说:use--tag-name-filtercat----all但是--all应该包含--tags,因此所有标签都应该被正确重写。一个小测试验证了这一点:$gitinit$mkdirdir$touchdir/file$gitadd.$gitcommit-aminit$gitls-filesdir/file$gittagtag$gitfor-each-ref3006eb0a031e40901122ac8984c85ad533982f8bcomm

git - `--tag-name-filter cat` 什么时候需要 `git filter-branch` ?

gitfilterbranch的手册页说:use"--tag-name-filtercat"tosimplyupdatethetags.后来它甚至说:use--tag-name-filtercat----all但是--all应该包含--tags,因此所有标签都应该被正确重写。一个小测试验证了这一点:$gitinit$mkdirdir$touchdir/file$gitadd.$gitcommit-aminit$gitls-filesdir/file$gittagtag$gitfor-each-ref3006eb0a031e40901122ac8984c85ad533982f8bcomm

git - 这条消息是什么意思?不止一个分支.<name>.remote

在gitremoteshoworigin的输出中,我看到这条消息:warning:morethanonebranch.main_int.remote一个更典型的例子是:warning:morethanonebranch.master.remote这是什么意思?它是坏的吗?如果坏了,我该如何解决? 最佳答案 [branch"master"](或[branch"main_int"])中有多个remote=...设置>)配置文件的一部分。要查看此内容,请运行:gitconfig--get-allbranch.master.remote很可

git - 这条消息是什么意思?不止一个分支.<name>.remote

在gitremoteshoworigin的输出中,我看到这条消息:warning:morethanonebranch.main_int.remote一个更典型的例子是:warning:morethanonebranch.master.remote这是什么意思?它是坏的吗?如果坏了,我该如何解决? 最佳答案 [branch"master"](或[branch"main_int"])中有多个remote=...设置>)配置文件的一部分。要查看此内容,请运行:gitconfig--get-allbranch.master.remote很可

Git:为每个 repo 设置不同的本地 user.name 和 user.email

我目前正在从事2个项目,当我向它们推送时,它们期望我使用不同的数据配置本地用户名和电子邮件。为此,我一直在更新我的配置,例如:gitconfig--localuser.email"namelastname@domain.example"由于它们是不同的存储库,有没有办法为每个存储库定义一个本地电子邮件?也许在.gitconfig中? 最佳答案 对于一个repo,进入相关的repoDIR并:gitconfiguser.name"YourNameHere"gitconfiguser.emailyour@email.example对于(全

Git:为每个 repo 设置不同的本地 user.name 和 user.email

我目前正在从事2个项目,当我向它们推送时,它们期望我使用不同的数据配置本地用户名和电子邮件。为此,我一直在更新我的配置,例如:gitconfig--localuser.email"namelastname@domain.example"由于它们是不同的存储库,有没有办法为每个存储库定义一个本地电子邮件?也许在.gitconfig中? 最佳答案 对于一个repo,进入相关的repoDIR并:gitconfiguser.name"YourNameHere"gitconfiguser.emailyour@email.example对于(全

git - git push 上的 "src refspec does not match"和 "failed to push some refs"错误

这个问题在这里已经有了答案:关闭10年前。PossibleDuplicate:Errorwhen“gitpush”togithub我试图将我的新分支(我们称之为new_branch)推送到远程代表。那里还没有这样的分支,但是gitpushoriginnew_branch:new_branch应该会创建它。当我尝试这样做时,这就是我得到的:error:srcrefspecnew_branchdoesnotmatchany.error:failedtopushsomerefsto'ssh://git@***'我在SO上挖掘了数百万个这样的问题,但没有一个问题同时指定这两个错误,它们只引用m

git - git push 上的 "src refspec does not match"和 "failed to push some refs"错误

这个问题在这里已经有了答案:关闭10年前。PossibleDuplicate:Errorwhen“gitpush”togithub我试图将我的新分支(我们称之为new_branch)推送到远程代表。那里还没有这样的分支,但是gitpushoriginnew_branch:new_branch应该会创建它。当我尝试这样做时,这就是我得到的:error:srcrefspecnew_branchdoesnotmatchany.error:failedtopushsomerefsto'ssh://git@***'我在SO上挖掘了数百万个这样的问题,但没有一个问题同时指定这两个错误,它们只引用m