Git/清理:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第6行: 第6行:
{{shc|<syntaxhighlight lang="bash">
{{shc|<syntaxhighlight lang="bash">
git rebase -i  [commit_id]</syntaxhighlight>|$|/home/kangkk}}
git rebase -i  [commit_id]</syntaxhighlight>|$|/home/kangkk}}
== orphan ==
{{shc|<syntaxhighlight lang="bash">
git checkout --orphan <new-branch-name>
git add .
git commit -am "Initial commit"
git branch -D <old-branch-name>
git branch -m <old-branch-name>
git push -f origin <old-branch-name></syntaxhighlight>|$|/home/kangkk}}