Using STASH operations in TortoiseGit

弹出 贮藏(stash) 对话框,直接点击确定按钮

1. Run git status, you can see the status of changes:

2. In TortoiseGit, git commits, which is consistent with the results of git status. as shown in Figure 1

在 TortoiseGit 中,Git 提交,与 git status 的结果一致
Figure 1

3. Now I want to switch branches, but I don’t want to submit the previous work; so the storage modification pushes the new storage to the stack, run git stash or git stash push:

4. You can see that the working directory is clean

5. At this point, you can switch branches and work elsewhere; your modifications are stored on the stack. Run git stash pop to apply storage and immediately throw it from the stack.

6. Now you need to implement the corresponding operations of steps 3 – 5 in TortoiseGit. TortoiseGit – Storage changes. as shown in Figure 2

现在需要在 TortoiseGit 中实现第 3 - 5 步骤的相应操作。TortoiseGit - 贮藏更改
Figure 2

7. Pop up the Stash dialog box, click the OK button directly. as shown in Figure 3

弹出 贮藏(stash) 对话框,直接点击确定按钮
Figure 3

8. The actual command to execute is: git.exe stash push, which is consistent with git stash. as shown in Figure 4

其执行的实际命令为:git.exe stash push,与 git stash 效果一致
Figure 4

9. In TortoiseGit, git submits, and the change list is empty. as shown in Figure 5

在 TortoiseGit 中,Git 提交,变更列表为空
Figure 5

10. Apply storage and immediately throw it away from the stack. TortoiseGit – Pop up storage. as shown in Figure 6

应用贮藏然后立即从栈上扔掉它。TortoiseGit - 弹出贮藏
Figure 6

11. The pop-up storage is successful. Click the No button directly. as shown in Figure 7

弹出贮藏成功。直接点击否按钮
Figure 7

12. In TortoiseGit, git submits, the change list has been restored. as shown in Figure 8

在 TortoiseGit 中,Git 提交,变更列表已经还原
8

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.