Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git #12

Open
yandeqiang opened this Issue Mar 26, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@yandeqiang
Copy link
Owner

yandeqiang commented Mar 26, 2018

git

github help from

issue

  1. 提交代码关闭 issue
    如果某个提交修复了一个Issue,当提交到master分支时,提交信息里可以使用 fix/fixes/fixed , close/closes/closed 或者 resolve/resolves/resolved等关键词,后面再跟上Issue号,这样就会关闭这个Issue。
git commit -m "fix #12"

这将会关闭Issue #12,并且在Issue讨论列表里关联引用这次提交。

  1. 引用其他 issue
    如果你想引用到同一个仓库中的一个Issue,只需使用井号 # 加上Issue号,这样就会自动创建到此Issue的链接。
    要链接到其他仓库的Issue,就使用 user_name/repo_name#ISSUE_NUMBER 的方式,例如 #12

  2. 关联多个 issue
    按照上面关联一个或者多个的方式, 写多个就好了

git commit -m 'fix #12, fix yandeqiang/blog#12'

git 配置/命令

问题

  1. 更新环境后, 可能会导致许多修改文件,但自己发现并没有改动,可能情况:

@yandeqiang yandeqiang changed the title github help git May 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.