2014-08-29 1 views
0

현재 분기와 마스터간에 변경된 파일 목록을 갖고 싶습니다. 이를 위해 나는Git 파일 목록 차이 단축키

git branch 

난에있어 어느 지점 확인하기 위해 실행해야하고 실행

git diff --name-status master..<BRACH> 

또는 실행

git diff --name-status master..$(git branch | grep '*' | sed -e 's/* //') 

을 바로 가기가 있습니까? git diff --name-status 목록을 반환하지만 아직 커밋되지 않은 파일과 HEAD 사이.

답변

2

두 솔루션 : git diff --name-status master..HEAD

  • 시도.
  • man git에 bash는 별칭 (또는 스크립트) 참고로

를 만들 :

HEAD 
     indicates the head of the current branch.