Я только что понял, что это может быть очень удобно (дает вам лучшее «чувство контекста» для вашего коммита, когда вы делаете, например, git commit
), если git-status
выводит несколько последних сообщений коммита вместо простого Your branch is ahead of ...
, так вот как то так
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: Gemfile.lock
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# models.html
# script/rails_ssl
# spec.txt
выглядит так
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits:
# z1s4c8 Use Rack::SSL to force SSL, make cookies secure
# a5f7qw Fixed department filter
#
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: Gemfile.lock
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# models.html
# script/rails_ssl
# spec.txt
Короткая сессия по поиску в Google ничего хорошего не принесла.