• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Git
    • Standalone SourceTree app for Mac with GitHub server as origin
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      I found that the GitHub app for Mac is very streamlined for our team. If we create a new Branch or perform a Pull, the GitHub app will automatically stash changes before and apply sttash changes afterwards. Creating branches and pulling on unstaged/unstashed working copy are very common operations.

      Can you guys add a checkbox for "automatically stash changes" on the dialogs for creating a new branch and performing a pull? And have that checkbox remember it's last setting.

      (I am looking for a GitHub app alternative for our team. Some of us are power users and others could care less about the differences between SVN and Git. I am hoping that SourceTree, with some convenience options, can satisfy both parties.)

            [SRCTREE-1732] add option to automatically stash changes

            All, Fix is available in the latest version of Sourcetree 4.2.9. Kindly update to the latest version.

            Arati Mohanty added a comment - All, Fix is available in the latest version of Sourcetree 4.2.9. Kindly update to the latest version.

            Ravi Kiran added a comment -

            This fix is in place, will be available in next release

            Ravi Kiran added a comment - This fix is in place, will be available in next release

            any update on this?

            Hitsuko Yamamoto added a comment - any update on this?

            Carl L added a comment -

            any update on this?

            Carl L added a comment - any update on this?

            any update on this?

            Ladislav Margai added a comment - any update on this?

            TJ Noor added a comment -

            It's been over 6 years and it still is under review. Please look into adding this auto stash feature since it helps take away at least 3 steps from the workflow and even Git supports it natively.

            TJ Noor added a comment - It's been over 6 years and it still is under review. Please look into adding this auto stash feature since it helps take away at least 3 steps from the workflow and even Git supports it natively.

            Fowler added a comment -

            ping!

            Adding a custom action is easy enough, but I'd MUCH rather tell my team that it simply works. That said, I'm not a huge fan of the global config.

            Please add it as a default option

            Fowler added a comment - ping! Adding a custom action is easy enough, but I'd MUCH rather tell my team that it simply works. That said, I'm not a huge fan of the global config. Please add it as a default option

            jenzz added a comment -

            Note that this is feature is now supported natively by Git since v2.7.0.
            All you need to do is set the following global config flag and you are no longer dependent on SourceTree to add this feature:

            git config --global rebase.autostash true

            jenzz added a comment - Note that this is feature is now supported natively by Git since v2.7.0 . All you need to do is set the following global config flag and you are no longer dependent on SourceTree to add this feature: git config --global rebase.autostash true

            I would also really love this feature. I have seen it by some other Source Controls apps (like SmartGit) which does this already and I am now using that one for the time being. As soon as Sourcetree supports automatic stashing, I would switch back again.

            Maurits Lourens added a comment - I would also really love this feature. I have seen it by some other Source Controls apps (like SmartGit) which does this already and I am now using that one for the time being. As soon as Sourcetree supports automatic stashing, I would switch back again.

            Hans Merkl added a comment -

            They are too busy changing icons instead of doing something useful like this

            Hans Merkl added a comment - They are too busy changing icons instead of doing something useful like this

              2566180e0bc8 Arati Mohanty
              7ce8a525bca2 James Lam
              Votes:
              160 Vote for this issue
              Watchers:
              60 Start watching this issue

                Created:
                Updated: