markdown 将git stashes从一个repo移动到另一个repo

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 将git stashes从一个repo移动到另一个repo相关的知识,希望对你有一定的参考价值。

# Move git stashes from one repo to another
---------------
This was useful for me when we created a new branch for a new major release, but were still working on our current version as well. I cloned our repo again and kept the new project on our new branch, but also wanted to get my stashes there.

## Download your stashes

    git stash show -p > patch

You'll have to specify your stash and name your file whatevery you want. Do this for as all your stashes, and you'll have patch files in your pwd.

## Apply your stashes

    cd /new/project/dir
    git apply /old/project/dir/patchfile
    git stash

以上是关于markdown 将git stashes从一个repo移动到另一个repo的主要内容,如果未能解决你的问题,请参考以下文章

git --- git stash用法

git stash

180608-Git工具之Stash

sh git从Stash创建补丁

git stash

git命令之git stash 暂存临时代码