Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitFAE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
firmware
gitFAE
Commits
5d200534
Commit
5d200534
authored
Oct 24, 2022
by
lishijun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git commit information close issue
parent
5c48458d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
README.md
README.md
+23
-0
No files found.
README.md
View file @
5d200534
...
@@ -622,6 +622,28 @@ $ git reset --hard HEAD^ //回退到上一个版本,删除当前版本(HEAD
...
@@ -622,6 +622,28 @@ $ git reset --hard HEAD^ //回退到上一个版本,删除当前版本(HEAD
# Or
# Or
$ git revert HEAD //revert是撤销某次提交,但是这次撤销也会作为一次提交进行保存(建议采用该方式)
$ git revert HEAD //revert是撤销某次提交,但是这次撤销也会作为一次提交进行保存(建议采用该方式)
```
```
##### git通过Commit关闭Issue:
```
$ git status //查看当前branch状态
$ git commit -m"Fixes #45" //提交信息中包含 Fixes #45,仓库中的45号issue就会自动关闭
# Or
# Issue关键字包含close closes closed, fix fixes fixed, resolve resolves resolved
# 以上方式均可以,建议采用closed或者fixed
# 如果你在commit的开头使用多个上述关键字加issue的引用的话,你就可以关闭多个issues
# 如果在不同的仓库中关闭issue,可以使用 username/repository#issue_number 这样的语法。
# 例如,在提交信息中包含Closes example_user/example_repo#76将会关闭那个仓库的的76号issue,前提是你push到了那个仓库。
```
---
---
## Git-Flow
## Git-Flow
...
@@ -823,3 +845,4 @@ git flow hotfix finish VERSION
...
@@ -823,3 +845,4 @@ git flow hotfix finish VERSION
<img
alt=
"Git"
src=
"Img/remote_loacl.png"
>
<img
alt=
"Git"
src=
"Img/remote_loacl.png"
>
</p>
</p>
<hr>
<hr>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment