Tôi đã tự hỏi làm thế nào mọi người thường tách ra nhiều nhận xét trong một cam kết. Sao? Dấu phẩy? Các dòng riêng biệt? Chỉ cần tự hỏi những gì bạn thấy là tốt nhất.Trong git, một số quy ước tốt là gì để định dạng nhiều nhận xét thành một cam kết đơn
Tôi đang sử dụng này bây giờ khi tôi thêm ý kiến qua Emacs, nhưng không chắc là tôi thích nó:
Added error messaging
Cleaned up sign-up UI
Added recaptcha
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Committer: Conrad Chu <[email protected]>
#
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: app/controllers/api_controller.rb
# modified: app/controllers/users_controller.rb
# modified: app/models/user.rb
# modified: app/views/users/new.html.erb
# modified: app/views/users/show.html.erb
# modified: config/environment.rb
# modified: db/migrate/20090923001219_create_users.rb
# modified: db/schema.rb
# modified: doc/README
# modified: public/stylesheets/master.css
# new file: vendor/plugins/recaptcha/.gitignore
# new file: vendor/plugins/recaptcha/CHANGELOG