|
|
| 第326行: |
第326行: |
| === 参考 === | | === 参考 === |
| * https://git-scm.com/book/zh/v2/Git-%E5%9F%BA%E7%A1%80-%E6%9F%A5%E7%9C%8B%E6%8F%90%E4%BA%A4%E5%8E%86%E5%8F%B2 | | * https://git-scm.com/book/zh/v2/Git-%E5%9F%BA%E7%A1%80-%E6%9F%A5%E7%9C%8B%E6%8F%90%E4%BA%A4%E5%8E%86%E5%8F%B2 |
|
| |
| == 回滚 ==
| |
| {{Shc_out|<syntaxhighlight lang="bash">
| |
| git log
| |
| </syntaxhighlight>|<syntaxhighlight lang="bash">commit 71d6d4d66ad34d815372dde78a9afc64397ad3ee (HEAD -> test, origin/test)
| |
| Author: kangkk <365@kangkk.com>
| |
| Date: Tue Mar 9 10:41:05 2021 +0800
| |
|
| |
| 添加package-lock
| |
|
| |
| commit 90cf19e637d4852262e5925094f3c4cae40f10ef
| |
| Merge: 4930a02 edc565d
| |
| Author: kangkk <365@kangkk.com>
| |
| Date: Tue Mar 9 10:31:52 2021 +0800
| |
|
| |
| 修复冲突
| |
|
| |
| commit edc565d95099e428005a415524b6735405efba4e (origin/fix-coverIsNull, fix-coverIsNull)
| |
| Author: kangkk <365@kangkk.com>
| |
| Date: Tue Mar 9 10:28:43 2021 +0800
| |
|
| |
| 修复封面历史问题
| |
|
| |
| commit aba9aaa7c550eb78141c79b618096747be141ca0
| |
| Author: kangkk <365@kangkk.com>
| |
| Date: Tue Mar 9 10:13:55 2021 +0800
| |
|
| |
| 修复封面历史问题
| |
|
| |
| commit 988fb5dd4719e82c951b4cbfbe6b2d784290e1eb
| |
| Author: kangkk <365@kangkk.com>
| |
| Date: Mon Mar 8 18:57:22 2021 +0800
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
| 然后回滚分支
| |
| {{shc|<syntaxhighlight lang="bash">git reset --hard 988fb5dd4719e82c951b4cbfbe6b2d784290e1eb
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
| 查看修改状态
| |
|
| |
| {{shc|<syntaxhighlight lang="bash">git status
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
| 远程仓库删除原有分支
| |
|
| |
| {{shc|<syntaxhighlight lang="bash">git push origin :test
| |
| git push origin test
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
|
| == 分支之间差异 == | | == 分支之间差异 == |