We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bcca09 commit 9a29bdfCopy full SHA for 9a29bdf
mark-git.md
@@ -82,3 +82,12 @@ git push origin --delete <branchName>
82
14.提取某个commit 提交合并到当前commit (当前commit 标识不变)
83
单个commit git cherry-pick `commitId`
84
多个commit 只需要git cherry-pick `commitId1..commitIdn` 注意2个commitId之间的`两点`
85
+
86
+15.撤销最后一次commit,并保留修改
87
+git reset HEAD~ --soft
88
+git stash
89
+然后切换到别的分支保存即可
90
+$ git checkout 分支名
91
+$ git stash pop
92
+$ git add .
93
+$ git commit -m "your message here"
0 commit comments