text Git命令备忘单

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Git命令备忘单相关的知识,希望对你有一定的参考价值。

By the way, here's a shortcut: if you want to create a new branch AND check it out at the same time, you can simply type 

git checkout -b [yourbranchname].
----------------------------------------------------------------
You can see all branches created by using :

git branch

----------------------------------------------------------------
You can create a new branche  by using :

git branch <name>

---------------------------------------------------------------------

reset --forSolution; 
git rebase -i HEAD~2 --solution-ordering C3,C2;
git commit --amend;
git rebase -i HEAD~2 --solution-ordering C2'',C3';
git rebase caption master 


---------------------------------------------------------------
git checkout master;

git cherry-pick C2;
git commit --amend;
git cherry-pick C3 


------------------------------------------------------------------------------

git rebase master bugFix;
git rebase bugFix side;
git rebase side another;
git rebase another master 

--------------------------------------------------------------------

reset --forSolution; 
git checkout one; 
git cherry-pick C4 C3 C2; 
git checkout two; 
git cherry-pick C5 C4 C3 C2; 
git branch -f three C2 

以上是关于text Git命令备忘单的主要内容,如果未能解决你的问题,请参考以下文章

markdown Git命令备忘单

markdown git命令行备忘单

powershell Git备忘单(有一些powershell)

GitHub Git 备忘单

为您的前端开发需求收集备忘单(HTML、CSS、JS、Git、Gulp等);参考

text 正则表达式备忘单