git을 사용하여 PHP 프로젝트를 관리하고 마스터, 스테이징, 개발 3 가지 지점을 보유하고 있습니다.은 추적 할 수없는 파일 때문에 분기를 계산할 수 없습니다.
그래서 새 기능을 master
분기로 병합했지만 문제는 git가 개발 분기로 다시 전환하는 것을 거부한다는 것입니다.
nothing to commit, working directory clean
지금까지 확인 될 것으로 보인다 :
내 .gitignore 내용 : 나는 자식의 상태를 입력 할 때
config_enviroment.php
.htaccess
.idea
a013/app/tmp/*
smarty/smarty_templates_c/*
config_enviroment.php
그래서 지금은 master
에입니다. 하지만 지금은 개발 분기에 작업을 다시 얻으려고
git checkout development
error: The following untracked working tree giles would be overwritten by checkout:
a013/app/Model/admin.php
a013/app/Model/articles.php
....
Please move or remove them before you can swich branches.
Aborting
질문 : 왜 자식이 그 파일을 추적하고 내 작업 디렉토리가 깨끗한 경우에도 지점을 전환하기를 거부 하는가?
로 변경 사항을 취소 변경 사항 커밋 약 gitignore가 없어도 나열됩니다.이 파일이 이미 올바르게 추적되어야 함을 이해합니다. – insanebits
@insanebits'git status '는 모든 파일을 표시하지는 않지만 그 파일이있는 디렉토리를 표시해야합니다. –