git push错误的原因是什么?

时间:2017-11-19 21:11:03

标签: git push case-sensitive

我从bitbucket克隆了远程回购。

我没有做任何更改,并且已经更改了一个文件:

Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   www/src/app/locale/Test.csv

no changes added to commit (use "git add" and/or "git commit -a")

实际上它是repo中的符号链接。

我尝试将其删除并推送此更改,但收到此错误:

➜  git:(master) git push origin master                                                                   
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 535 bytes | 0 bytes/s, done.
Total 7 (delta 5), reused 0 (delta 0)
remote: 
remote: One of your commit messages is missing an issue ID:
remote: 
remote:   0df2153: test
remote: 
remote: For more information, see https://confluence.atlassian.com/x/ZwjoE.
remote: 
To https://bitbucket.org/[replaced_url_path].git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://[replaced_url_path].git'

我注意到在远程repo中,Test.csv附带了文件名中的低注册表: www/src/app/locale/test.csv

我试图重命名并推送它。结果相同 - 我不能用同样的错误推它。

我尝试使用git config选项 git config --system core.ignorecase false/true

尝试这样做: How do I commit case-sensitive only filename changes in Git?

总是结果是一样的。

1 个答案:

答案 0 :(得分:1)

  

git push错误的原因是什么?

原因包含在服务器的响应中:

  

remote:您的一条提交消息缺少问题ID:

远程仓库要求所有提交消息必须引用错误跟踪器中的相应条目。但是,您的提交消息只是单词&#34; test&#34;。