#git
#git
Вопрос:
Мне нравится просматривать мой журнал Git следующим образом
$ git log --graph --decorate --oneline -10 --all
но он включает сообщения о фиксации. Как мне скрыть сообщения и получить что-то подобное?
* e12ed2d (master)
* d190591
|
* | dd28b78
| | * 4f959a8 (how-many-branches-do-you-have?)
| |/
| | * 351e175 (yet-another-branch-name)
| |/
| | * c04425a (other-branch-name)
| |/
| | * d7f486c (branch-name)
| | * 530eeb2
| | * bf1ad62
Ответ №1:
Используйте --pretty=format:""
директиву:
git log --graph --decorate -10 --all --pretty=format:"%Cred%h%Creset%C(yellow)%d%Creset"
Вы можете увидеть доступные варианты здесь (таблица 2.1):
http://git-scm.com/book/en/Git-Basics-Viewing-the-Commit-History