티스토리 뷰

programming

Git Log : print merge tree

gunnih 2013. 11. 10. 06:28


Git Log 명령어로 Merge 트리를 출력하는 방법입니다.

아래와 같이 .gitconfig 파일에 별명 (alias)를 설정해 주세요


(add alias in your .gitconfig file)


[alias]

lgb = log --merges --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%ai%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n''          %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all



그리고 아래 명령어를 시행하시면, 

(and run command )

"git lgb"


Merge 로그만 보여주는 트리가 나옵니다.

(then you can see the tree about merges.)





--grep 옵션을 이용하시면, 서로 다른 브랜치간에 이루어진 Merge 만을 보여주는 tree도 만드실 수 있습니다.

(with  --grep option, you can make new alias to show just merges between other branches.)


공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함