4038得票140回答
在Git中推送提交时出现“src refspec master does not match any”消息

我使用以下命令克隆我的存储库:git clone ssh://xxxxx/xx.git 但是在我修改了一些文件并add和commit之后,我想将它们推送到服务器:git add xxx.php git commit -m "TEST" git push origin master 但我收到的...

807得票6回答
什么是git标签,如何创建标签和如何检出git远程标签。

当我使用如下命令检出远程Git标签时:git checkout -b local_branch_name origin/remote_tag_name 我收到了这样的错误: 错误:路径规范 origin/remote_tag_name 不匹配 Git 所知道的任何文件。 当我使用 git ...

92得票2回答
Git - 什么是“Refspec”?

我一直在按照这篇指南配置GitLab和Jenkins之间的持续集成。 在过程中,需要将refspec设置为如下内容:+refs/heads/*:refs/remotes/origin/* +refs/merge-requests/*/head:refs/remotes/origin/merge...

59得票9回答
git推送错误:src refspec main在Linux上没有匹配任何内容。

每当我尝试使用git push -u origin main上传文件时,我会收到以下错误信息。error: src refspec main does not match any error: failed to push some refs to 'github.com:xxxxxx/xxx...

18得票1回答
自定义对象和引用的注意事项有哪些?

假设我想编写一个小助手,可以以一种可通过refs传播到克隆体的方式向存储库附加一些元数据。以下是一个简单的示例(不会将注释附加到任何其他git对象的git-notes克隆原型):hash=$(echo "Just a comment" | git hash-object -w --stdin)...

7得票3回答
错误:无法更新引用'refs/remotes/origin/xyz':无法为'.git/logs/refs/remotes/origin/xyz'创建目录:没有这样的文件或目录。

当我执行 git pull 时,遇到以下问题: error: 无法更新引用 'refs/remotes/origin/xyz':无法为 '.git/logs/refs/remotes/origin/xyz' 创建目录:没有这样的文件或目录 我已经检查了特定的位置,既没有权限问题,也没有...