소소한 컴퓨터 이야기

Git 관련 툴

by Cori

TIG (Text-mode Interface fot Git) 

깃 커밋 히스토리를 터미널에서 보여주는 툴로, git log와 동일한 기능이지만 git log 보다 터미널상에서 깃 커밋 히스토리 및 수정 사항들을 훨씬 보기 쉽게 해준다. 

-- mac 
brew install tig
-- ubuntu
sudo apt install tig

 

Diff So Fancy

git diff의 출력 화면을 터미널 상에서 더 보기 쉽게 출력해주는 플러그인으로, 수정 사항들이 눈에 더 잘 들어오게 짜여져 있다. 

-- mac 
brew install diff-so-fancy
-- ubuntu
sudo apt install npm 
sudo npm -g install diff-so-fancy

Diff So Fancy 설치 후에는 원하는 색상 설정을 해주어야 하는데, 다음은 Diff So Fancy에서 권장하는 설정들로 아래 명령어 그대로 터미널에서 실행해주면 된다. 

git config --global color.ui true 

git config --global color.diff-highlight.oldNormal "red bold"
git config --global color.diff_highlight.oldHighlight "red bold 52"
git config --global color.diff-highlight.newNormal "green bold"
git config --global color.diff-highlight.newHighlight "green bold 52"

git config --global color.diff.meta "yellow"
git config --global color.diff.frag "magenta bold"
git config --global color.diff.commit "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.diff.whitespace "red reverse"

 

'CS > Git' 카테고리의 다른 글

Git 간단하게 살펴보기  (0) 2025.02.17

블로그의 정보

코딩하는 오리

Cori

활동하기