Git график с названием ветки - PullRequest
1 голос
/ 04 августа 2020

Я видел много очень хороших git графиков, как в этом посте: Симпатичные git графы веток

Но никогда не было имени ветки, в которой была сделана фиксация. сделано. Как я могу это добавить?

1 Ответ

1 голос
/ 04 августа 2020

Флаг --decorate добавляет имена веток к git log. Например, без:

$ git log --oneline --graph
* 51ebf55b93 The sixth batch for 2.26
*   f97741f6e9 Merge branch 'es/outside-repo-errmsg-hints'
|\
| * e0020b2f82 prefix_path: show gitdir when arg is outside repo
* |   123538444f Merge branch 'jk/doc-credential-helper'
|\ \
| * | cc4f2eb828 doc: move credential helper info into gitcredentials(7)

С --decorate:

$ git log --oneline --graph --decorate
* 51ebf55b93 (HEAD -> master, origin/master, origin/HEAD) The sixth batch for 2.26
*   f97741f6e9 Merge branch 'es/outside-repo-errmsg-hints'
|\
| * e0020b2f82 (es/outside-repo-errmsg-hints) prefix_path: show gitdir when arg is outside repo
* |   123538444f Merge branch 'jk/doc-credential-helper'
|\ \
| * | cc4f2eb828 (jk/doc-credential-helper) doc: move credential helper info into gitcredentials(7)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...