Git 에일리어스

· 4년 전 · 1602

자주 쓰는 용어를 Alias로 만들어 두면 보기가 편하겠죠.

 

git log 대신 git lg로 보면 차이를 알수 있습니다.

 

git config --global alias.lg 'log --graph --oneline --decorate'

git config --global alias.lga 'log --graph --oneline --decorate --all'

 

git commit은 git ci로

git config --global alias.ci 'commit'

 

git checkout은 git co로

git config --global alias.co 'checkout'

 

log를 조금 더 예쁘게

git config --global alias.lol "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --date=relative"

 

git config --global alias.lola '!git lol --all && 0'

 

|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

Git

+
제목 글쓴이 날짜 조회
4년 전 조회 1,117
4년 전 조회 1,603
5년 전 조회 1,462
5년 전 조회 952
5년 전 조회 1,300
5년 전 조회 1,564
5년 전 조회 1,034
5년 전 조회 1,602
6년 전 조회 1,636
6년 전 조회 1,774
6년 전 조회 1,925
6년 전 조회 1,914
6년 전 조회 1,848
6년 전 조회 1,445
6년 전 조회 1,855
6년 전 조회 1,980
6년 전 조회 2,366
6년 전 조회 1,659
6년 전 조회 2,043
6년 전 조회 1,713
6년 전 조회 1,705
6년 전 조회 1,808
6년 전 조회 2,075
6년 전 조회 1,804
6년 전 조회 1,520
6년 전 조회 1,839
7년 전 조회 1,707
7년 전 조회 1,622
7년 전 조회 2,054
8년 전 조회 6,156
🐛 버그신고