Git

git diff --name-status

thxxyj 2024. 5. 9. 11:56
728x90

git commit 정보 중 name-status로 나올 수 있는 것은 다음과 같다.

$ git log -1 --name-status
  • ' ' = unmodified
  • M = modified
  • T = file type changed (regular file, symbolic link or submodule)
  • A = added
  • D = deleted
  • R = renamed
  • C = copied (if config option status.renames is set to "copies")
  • U = updated but unmerged

 

 

R100 의 의미?

https://stackoverflow.com/questions/53056942/git-diff-name-status-what-does-r100-mean

R100    file1    dir/file1

 

<X><score>  The rename or copy score (denoting the percentage
	    of similarity between the source and target of the
	    move or copy). For example "R100" or "C75".

https://git-scm.com/docs/git-status#_changed_tracked_entries

 

파일 내용 변화 없이 위치(이름)만 변경되었음 (내용 100% 일치)

728x90