lost git stash changes

后端 未结 3 511
误落风尘
误落风尘 2020-12-13 09:47

So here\'s what happened: I was on a branch \'A\' and did a Git stash on that branch. Then I switched to another branch \'B\'. I navigated back to Branch \'A\' but did not d

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 09:52

    Something similar happened to me. In short, check to make sure you didn't accidentally push the new files to the other branch.

    Here's what happened to me: I stashed my stuff, switched from 'dev' to 'master' to do a hotfix quick. When I pushed my hotfix to master, I didn't notice that I also added my new files that were meant for dev to the master branch--I too assumed stash included those files.

提交回复
热议问题