Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用git提交失败_Git_Pycharm - Fatal编程技术网

使用git提交失败

使用git提交失败,git,pycharm,Git,Pycharm,我在尝试从pycharm简单提交2个文件时收到错误消息 06:11 Commit failed with error 0 files committed, 1 file failed to commit: pagination warning: CRLF will be replaced by LF in static/images/kb-icon-arrow-1.svg. The file wi

我在尝试从pycharm简单提交2个文件时收到错误消息

06:11   Commit failed with error
                0 files committed, 1 file failed to commit: pagination
                warning: CRLF will be replaced by LF in static/images/kb-icon-arrow-1.svg.
                The file will have its original line endings in your working directory.
git状态输出以下内容

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

    modified:   static/images/kb-icon-arrow-1.svg
    modified:   static/images/kb-icon-arrow-2.svg

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:   app.yaml
    modified:   pytz/__init__.pyc
    modified:   pytz/exceptions.pyc
    modified:   pytz/tzfile.pyc
    modified:   pytz/tzinfo.pyc

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    .idea/
$git状态
论分行行长
您的分支机构是最新的“原始/主”分支机构。
要提交的更改:
(使用“git重置磁头…”取消分级)
修改:static/images/kb-icon-arrow-1.svg
修改:static/images/kb-icon-arrow-2.svg
未为提交而暂存的更改:
(使用“git add…”更新将提交的内容)
(使用“git签出--…”放弃工作目录中的更改)
修改:app.yaml
修改:pytz/_init__.pyc
修改:pytz/exceptions.pyc
修改:pytz/tzfile.pyc
修改:pytz/tzinfo.pyc
未跟踪的文件:
(使用“git add…”包含在将提交的内容中)
.想法/

警告之后应该有一个实际的错误,例如(因为“
分页”
”不是正在提交的文件)


这是(使用提交消息,或a),可能是一个bug(请确保升级pycharm),但同时,检查命令行中的
git commit-m“pagination”
是否允许您通过该特定提交。

我通过删除.gitconfig中的[i18n]配置解决了这个问题

Creation of commit message file failed