"변경되었지만 업데이트되지 않은 평균"은 무엇입니까? 이 파일들은 git에 있고 수정되었지만 "git status"를 실행하면 "Changes to commit"대신 "Changed but updated"아래에 나타납니다.힘내 : 파일 "변경되었지만 업데이트되지 않았습니다"
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: breakouts/views.py
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: templates/registration/login.html
# modified: templates/registration/registration.html
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# context_processors.py
# static/#css.css#
그들은 이미 추가되었으므로 "변경 사항이 커밋되었습니다"가 아닌 이유는 무엇입니까?
여기서 핵심 아이디어는'git add'로 커밋을 준비한다는 것입니다. 즉, 준비 영역 (인덱스)에 수정 사항을 넣은 다음 커밋 할 항목을 준비하고 나면 커밋합니다 . 이것은 주어진 커밋에 무엇이 들어가는지를 매우 조심하게합니다. – Cascabel