TOOLS_MISC

[Repo] Repo 사용법

이를루 2022. 1. 3. 20:05

Repo init,  Repo sync. 여기까지는 아는데~

 

[[Q]] repo sync 후에 얼마나 바뀌었는지 어떻게 알 수 있을까?

[[A]] repo diff 와 repo status

  • repo diff  : shows outstanding changes between the commit and the working tree using git diff.
    • 즉 sync 이후의 수정 상태를 보여줌.
  • repo status : compare the working tree to the staging agre and the most recent commit on this branch(=HEAD) in each project specified.  Displays a summary line for each file where theres is a difference between three states.
    • 3way로 작업 디렉토리 - Staging - Commit의 비교를 해 줌.
    • 예)  "-m" means --> no change in staging area but file changed.
      • 첫컬럼(대문자) : Staging Area vs latest commit
      • 두번째컬럼(소문자) : Staging Area vs working tree
컬럼1 의미 컬럼2 의미
- same as HEAD and index - New/Unknown -  index 없음. 워크트리에 없음
A Added - HEAD 없음 m Modified - Index 트리에 있는데 수정되어 있음
M Modified - HEAD에는 있는데 수정되어 있음 d Deleted - Index에는 있는데 파일을 삭제했음
D Deleted -

R Renamed

C Copied

T Mode Changed

U Unmerged
 

 

 

 

참고 링크

1. Repo Command Reference :  https://source.android.com/setup/develop/repo

2. Repo README : https://gerrit.googlesource.com/git-repo/+/HEAD/README.md 

 

repo

 

gerrit.googlesource.com

 

Repo 명령어 참조  |  Android 오픈소스 프로젝트  |  Android Open Source Project

Repo 명령어 참조 Repo는 여러 저장소 전체에 걸친 작업을 단순화하여 Git를 보완합니다. Repo 및 Git 간의 관계에 관한 설명은 소스 제어 도구를 참조하세요. Repo에 관한 자세한 내용은 Repo README를 참

source.android.com