如何写一个好的git提交信息?

波斯王子 波斯王子 Follow Jun 09, 2017 · 1 min read
Share this



Git Commit

简介:为什么写一个好的git提交信息很重要?

七个法则:

  1. Separate subject from body with a blank line
  2. Limit the subject line to 50 characters
  3. Capitalize the subject line
  4. Do not end the subject line with a period
  5. Use the imperative mood in the subject line
  6. Wrap the body at 72 characters
  7. Use the body to explain what and why vs. how
Join Newsletter
Get the latest news right in your inbox. We never spam!
波斯王子
Written by 波斯王子 Follow
去读书吧,发现不一样的世界!😉