Git 에일리어스

· 4년 전 · 1660

자주 쓰는 용어를 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,155
4년 전 조회 1,661
5년 전 조회 1,522
5년 전 조회 1,003
5년 전 조회 1,364
5년 전 조회 1,640
5년 전 조회 1,085
5년 전 조회 1,655
6년 전 조회 1,705
7년 전 조회 1,838
7년 전 조회 1,991
7년 전 조회 1,965
7년 전 조회 1,930
7년 전 조회 1,509
7년 전 조회 1,919
7년 전 조회 2,045
7년 전 조회 2,428
7년 전 조회 1,715
7년 전 조회 2,099
7년 전 조회 1,787
7년 전 조회 1,773
7년 전 조회 1,902
7년 전 조회 2,150
7년 전 조회 1,885
7년 전 조회 1,588
7년 전 조회 1,910
7년 전 조회 1,769
7년 전 조회 1,701
7년 전 조회 2,117
8년 전 조회 6,268