0

Consider I had to work on Branch Y but I was working on the branch X and I committed all my changes to X. These changes need to be committed on branch Y. Somehow I reverted all the changes from the Branch X and stashed them. Now I moved to branch Y and I want to apply the stashed changes to my current branch i.e Y.

I can see my stashed in stash list but when I am trying to apply stash by the following command :

git stash apply 1
git stash apply stash@{1}
git stash apply "stash@{1}"

I am getting the message as "nothing to commit".

There were some untracked files on branch X so I stashed them using following command:

git stash --include-untracked

0 Answers0