2017-03-25 131 views
0

我在嘗試做從pycharm的2個文件的簡單提交提交使用Git

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/ 

回答

1

應該有後的實際錯誤警告,就像(因爲「pagination」不是提交文件的)

Creation of commit message file failed 

那是reported before(帶有提交消息或git hook issue),並且可能是一個錯誤(確保升級pycharm),但在此期間,請檢查命令行中的git commit -m "pagination"是否允許您通過該特定提交。