我的master分支搞砸了.我现在应该设置分支,但我刚刚意识到为什么我需要它们!
所以,我有一堆变化master,我不想提交,但我在一个新的分支中有一些修补程序,我想提交.
如何将所有这些东西放在master一边并从分支推送一个小的修补程序?
基本上,我还没准备好在屏幕截图中推送任何内容:

小智 6
DESCRIPTION
Use git stash when you want to record the current state of the working
directory and the index, but want to go back to a clean working
directory. The command saves your local modifications away and reverts
the working directory to match the HEAD commit.
Run Code Online (Sandbox Code Playgroud)
你也可以
git stash list
Run Code Online (Sandbox Code Playgroud)
将展示你所做的所有藏匿处,以及
git stash clear
Run Code Online (Sandbox Code Playgroud)
如果你想放弃隐藏的变化.
| 归档时间: |
|
| 查看次数: |
102 次 |
| 最近记录: |