Git常用模版文件

记录Git相关模版,用的时候直接复制粘贴了

.gitignore

 1# vim
 2*.swp
 3*.swo
 4*.so
 5
 6# vim plugin
 7# https://github.com/tpope/vim-projectionist
 8.projections.json
 9
10# TOOD file
11TODO.md
12TODO.txt
13todo.md
14todo.txt
15
16# python
17.ropeproject/
18*.pyc
19*.pyo
20
21# testfile
22run_admin.sh
23wnntest.sh
24wnnrun.sh
25wnntodo.md
26run.sh
27.python-version
28.tmp
29
30# mvn
31mvn_publish.sh
32
33# js/node
34.tern-port
35.tern-project
36t.js
37node_modules/
38
39# ag silver searcher
40.agignore
41
42# IDE
43.idea
44
45# mac
46.DS_Store
47
48# personal
49mydoc
50
51# golang
52.gometalinter.json
53
54
55.netrwhist
56
57# redis
58dump.rdb

Commit 模版

 1# head: <type>(<scope>): <subject>
 2# - type: feat, fix, docs, style, refactor, test, chore
 3# - scope: can be empty (eg. if the change is a global or difficult to assign to a single component)
 4# - subject: start with verb (such as 'change'), 50-character line
 5#
 6# body: 72-character wrapped. This should answer:
 7# * Why was this change necessary?
 8# * How does it address the problem?
 9# * Are there any side effects?
10#
11# footer:
12# - Include a link to the ticket, if any.
13# - BREAKING CHANGE
14#
Licensed under CC BY-NC-SA 4.0