일반적으로 작업 디렉토리가 깨끗하면 "git status"를 사용할 수 있습니다. 출력은 보이는 같은 :Git : 작업 디렉토리가 수정되었을 때 로컬 브랜치가 원격 브랜치보다 앞서 있는지 확인하는 방법은 무엇입니까?
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
그러나, 작업 디렉토리가 변경되었을 경우, "자식 상태"출력 :
# On branch master
# 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: body/chap1.tex
#
no changes added to commit (use "git add" and/or "git commit -a")
내가 원격 지사에 대한 모든 변경을 추진 한 경우 두 번째 결과가 표시되지 않습니다 . 때로는 작업 디렉토리가 수정 될 때 여전히 첫 번째 결과를 원합니다. 그런 상태에서 그것을 얻는 방법?
Windows 시스템에서는 msys-git을 사용하고 있습니다. 그것은 조금 다릅니다. – river6