git log --graph --abbrev-commit --decorate --format=format:"%C(cyan)%h%C(reset) - %C(green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(yellow)%d%C(reset)" --all
터미널에 위 명령어를 입력하면..
# 설정
git config --global alias.history 'log --graph --abbrev-commit --decorate --format=format:"%C(cyan)%h%C(reset) - %C(green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(yellow)%d%C(reset)" --all'
# 사용
git history
매번 입력하기에는 너무 기니까 git config 명령어로 전역 alias를 설정해 사용해주자
Reference🔽
Git Alias 사용법: 깃 단축키 설정하는 방법
깃(Git)은 코드를 관리하는데 더 없이 훌륭한 툴임이 틀림없다. 그러나 그만큼 많은 명령어를 가지고 있고 복잡한 옵션을 일일이 기억하는 것은 매우 어려운 일이다. Bash등의 쉘이 Alias 기능을 지
jeonghwan-kim.github.io
[Git]Alias 추가 / 삭제 / 목록 보기
Git의 유용한 방법 중 하나인 Alias의 추가, 삭제 및 목록 명령어를 다음과 같이 사용할 수 있습니다. Alias 추가 Alias 추가하는 명령어는 다음과 같습니다. //전역에 Alias 추가 $ git config --global alias.ci
minsone.github.io
'Tools > Git, GitHub' 카테고리의 다른 글
[TIL] Git Flow 브랜치 전략 (0) | 2022.07.18 |
---|---|
[TIL] gitmoji 커밋 메시지 컨벤션 (0) | 2022.04.24 |
[TIL] 커밋 메시지 컨벤션 (6) | 2022.01.05 |
[Codeit/Git] #7 Git 자유자재로 활용하기 (4) | 2021.06.08 |
[Codeit/Git] #6 Git 협업하기 (4) | 2021.05.31 |