IT/GIT

GIT 이쁘게 보기

차가운남자 2019. 12. 3. 15:01

왼쪽 Before 오른쪽 After

적용하는 법

  • 터미널에 입력

    git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
  • 실행시킬 때는

    git lg

    실행하면 그냥 git log --graph했을 때보다 직관적이고 하이라이팅된 형태로 볼 수 있다. 바뀐 내용을 상세히 보고 싶을 때에는 git lg -p를 입력하면 된다.

 

참고: https://developer-alle.tistory.com/320?category=826739