어떤 이유로 든 힘내는 내가 "커밋"되고 "커밋을 위해 준비되지 않은"파일을 가지고 있다고 말하고 있습니까?힘내 기는 동일한 파일을 수정하고 커밋을 위해 준비되지 않았습니까?
% git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: Dir1/Dir2/filename.cpp
#
# 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: Dir1/Dir2/filename.cpp
Dir1
, Dir2
및 filename.cpp
확실히 모두 같은 파일은 다음과 같습니다이 이해가되지 않습니다. filename.cpp
을 다시 추가하여 커밋 할 변경 사항 (원래 저장소에 있던)이 나타나도록해야했습니다. 문제를 일으킬 수있는 유일한 정보는 내가 은닉 한 것인데, pull --rebase
, 그 다음에 stash
이 튀었습니까? .gitignore
은 Dir1
, Dir2
또는 filename.cpp
을 어디에도 나열하지 않으며 패턴은이 파일을 잡을 것이라고 제안하지 않습니까?
정확히 무엇이 문제입니까? – svick
을 추가 한 후에 수정 한 것처럼 보이면 다시 추가해 주시면됩니다. – thenetimp
[기본 사항] (http : // git-scm.co.kr/book/ko/Getting-Started-Git-Basics # The-Three-States)를 사용하십시오. – kostix