Git 에일리어스

· 4년 전 · 1659

자주 쓰는 용어를 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,660
5년 전 조회 1,522
5년 전 조회 1,002
5년 전 조회 1,364
5년 전 조회 1,639
5년 전 조회 1,085
5년 전 조회 1,654
6년 전 조회 1,705
7년 전 조회 1,838
7년 전 조회 1,990
7년 전 조회 1,965
7년 전 조회 1,928
7년 전 조회 1,508
7년 전 조회 1,919
7년 전 조회 2,044
7년 전 조회 2,428
7년 전 조회 1,715
7년 전 조회 2,099
7년 전 조회 1,786
7년 전 조회 1,773
7년 전 조회 1,900
7년 전 조회 2,149
7년 전 조회 1,885
7년 전 조회 1,587
7년 전 조회 1,910
7년 전 조회 1,768
7년 전 조회 1,701
7년 전 조회 2,117
8년 전 조회 6,266