On Mon, Aug 24, 2015 at 4:50 PM, Priya K <priyacst at gmail.com> wrote:
Say, first I have some commits in my *master* branch.
Now I create a branch named *new*.
I do some changes in *new* branch.
Now I want to checkout to *master* branch without committing the changes.
So when I checkout, it should show an error for stashing. But no error
occurs, it checked-out to *master* branch.
Actually,
First I have to do a commit in *new* branch. Then I do some changes in a
file. In this case only, when I try to checkout, an error occurs for
stashing.
I don't know why a commit is necessary before stashing.