Export a stash to another computer

前端 未结 9 909
小蘑菇
小蘑菇 2020-12-02 03:43

I need a way to export a stashed change to another computer.

On computer 1 I did

$ git stash save feature

I\'m trying to get the stash

9条回答
  •  日久生厌
    2020-12-02 04:21

    How to do export Stash in SourceTree:

    1. Make a new branch "StashTransfer" from a branch where you are going to use your Stash
    2. Apply your stash to it and make a commit

    3. Click on your commit and make a patch from it, take the patch file with you.

    4. Go to a different repository, select the same parent branch which you just used in 1)

    5. Actions / Apply Patch, select Mode: Modify working copy files, push Apply Patch now you have uncommitted modifications from the patch in your current working environment

    6. Make a new Stash for the current repo

提交回复
热议问题