管理分支和提交

Managing branches and committs

我不确定问这个问题的正确位置,因为它是关于过程而不是编程。如果能移到合适的位置我将不胜感激

我正在继续学习版本控制和 TortoiseGit 的概念。但是我不确定一个概念...

I have project A.
    I am working on FEATURE BRANCH X.
        I am not finished with FEATURE BRANCH X just yet.
    But I would like to go back to project A and make some changes.
        Then come back to FEATURE BRANCH A and continue with that branch and eventually merge it to project A.

我担心丢失提交和/或文件。我以前也遇到过。

我只使用过基本的 Git,但我很确定 TortoiseGit 中也存在这样的功能,它被称为 stash。它可以帮助您保存更改而无需将它们提交到分支。存储更改后,您可以转到任何其他分支并在那里工作。当您 return 到具有隐藏更改的分支时,您弹出存储,现在这些更改可作为未暂存的使用。