Skip to content

Lihengwannafly/learn-sth-everyday

 
 

Repository files navigation

#Hello World

Commit msg format

AngularJS规范

header,body,footer

  • revert如果有,如commit revert了其他commit,那么header应该以“revert:”开始,后面跟上被revert的commit标题。body应该是This reverts commit <hash>
  • header,包括type,分隔符,主题
    • type:
      • feat(feature)
      • fix(bug fix)
      • docs(documentation)
      • style(formating, missing semi colons, ...)
      • refactor
      • test(when adding missing tests)
      • chore(maintain) 主题信息能够简短描述commit即可,结尾不要用".",开头不要大写。使用祈使语态,如change,而不是changed。
  • msg body,为什么做这个commit,以及改动前后的对比
  • footer
    • breaking changes:重要改动声明。
    • referencing issues:如果和issue相关,指出来。

example

fix($compile): couple of unit tests for IE9

Older IEs serialize html uppercased, but IE9 does not...
Would be better to expect case insensitive, unfortunately jasmine does
not allow to user regexps for throw expectations.

Closes #392
Breaks foo.bar api, foo.baz should be used instead

thoughtbot 规范

地址

# 50-character subject line
#
# 72-character wrapped longer description. This should answer:
#
# * Why was this change necessary?
# * How does it address the problem?
# * Are there any side effects?
#
# Include a link to the ticket, if any.

关于这个规范更详细的说明可以参考他们的一篇文章 5 Useful Tips For A Better Commit Message 。简单来说:

  1. 第一行不超过 50 个字符
  2. 第二行空一行
  3. 第三行开始是描述信息,每行长度不超过 72 个字符,超过了自己换行。
  4. 描述信息主要说明: a. 这个改动为什么是必要的? b. 这个改动解决了什么问题? c. 会影响到哪些其他的代码?
  5. 最后最好有一个相应 ticket 的链接

Here are some bacis knowledge with links:


Files Included

AngularJS Learn

Beginning-Python-2nd-Edition

  • Project1-Instant-Markup

Learn-python-the-hard-way

##liaoxuefeng tutorial

practice

  • LeetCodeOJ
  • SPOJ-basics
  • others

pythonchallenge

About

typing the practice here

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.8%
  • HTML 6.6%
  • OpenEdge ABL 1.7%
  • Other 0.9%