my/rails 디렉토리에 test_app /, dma4/및 test2_app /라는 세 개의 프로젝트가 있습니다. 현재 test_app/디렉토리 (git 용으로 이미 초기화되어 있음)에서 작업 중이며 변경 사항을 커밋했습니다. 커밋 한 후에 변경 사항을 보려면 'git status'를 수행했습니다. 웬일인지 그것은 다른 프로젝트 인 ../dma4와 ../test2_app을 제외하고 변경이 없다는 것을 알려줍니다 !!다른 프로젝트에서 변경된 내용이 있음
왜 내 현재 프로젝트의 변경 사항에 대해 알려주시겠습니까 ?? 내가 여기
정확한 메시지의 ... 내 .gitignore 파일에 다른 프로젝트를 무시해서는 안 :test_app $ git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: ../dma4 (modified content)
# modified: ../test2_app (modified content)
#
no changes added to commit (use "git add" and/or "git commit -a")
test_app $
이 다른 프로젝트는 여기에 계층 구조가 보이는 방법은, 현재 프로젝트 하위 폴더되지 않습니다
레일/test2_app 레일/DMA4 레일/test_app
가이 왜 할 것?
'git rev-parse --show-toplevel'의 결과는 무엇입니까? –
나는 당신의 명령을 시도했지만 stackoverflow를 리프레시하기 전에 ls -la ../를 보았고 모든 애플 리케이션의 부모 디렉토리에서 .git을 보았습니다. 내가 실수로 '자식 초기화'를 어떻게 실행했는지 상위 디렉토리 내부! – dingalingchickenwiing