2
GitHub에서 public/index.html 파일을 아직 추가하지 않았고 커밋하고 푸시 한 후에도이 파일이 삭제되지 않은 이유는 무엇입니까?
다음 코드를 실행하여 public/index.html 파일이 삭제되었는지 확인했습니다.git rm public/index.html
fatal: pathspec 'public/index.html' did not match any files
그러면 git status가 실행되었습니다.
# On branch master
nothing to commit (working directory clean)
git로 밀었다.
이 두 가지 응답을 바탕으로 파일이 삭제되었습니다. 나는 심지어 나의 디렉토리를 점검했다. 그리고 거기에 없다. 그러나 파일은 여전히 내 저장소에 있습니다. Git push는 아무 것도하지 않은 것처럼 보였다.
[Remove 0cd9c89] Removed public/index.html
2 files changed, 0 insertions(+), 239 deletions(-)
delete mode 100644 public/index.html
*******-MacBook-Air:da_list ****$ git push heroku
Everything up-to-date
*******-MacBook-Air:da_list ****$ git push
Everything up-to-date
당신이 올바른 지점에 있다고 확신합니까? – karmajunkie
git commit -a – apneadiving
@karmajunkie를 시도 했습니까? 세상에. 나는 아니었고 병합하고 다시 밀어야했습니다. 나는이 질문을 그렇게 간단하게 보이기 때문에 삭제해야합니까? 나는 지금 일해야한다. – Tony