Stash the changes made with atlassian sourcetree

后端 未结 3 1148
陌清茗
陌清茗 2021-01-31 08:54

I have a lot of files changed in my project. I want to stash 2 files but i\'m a bit afraid to make a mistake since i never did this.

If i would stash now, will it only s

3条回答
  •  没有蜡笔的小新
    2021-01-31 09:34

    I'm also looking for a way to stash only a few items from my working copy and I stumbled upon this question. I found a workaround that was mentioned in the official Atlassian forums. I tried it using SourceTree version 3.3.8 for Windows and it works for me.

    To stash select files:

    • Stage the files you want to stash

    • Then stash all files, but making sure that 'Keep staged changes' is checked

    • Now you only have the files you want to stash in your current working copy

    • Stash all files, with 'Keep staged changes' unchecked

    You can then re-apply the first stash, and discard the files that you wanted to stash.

提交回复
热议问题