Commit is not necessary b4 stashing.
https://www.youtube.com/watch?v=KLEDKgMmbBI and read this
http://git-scm.com/book/en/v1/Git-Tools-Stashing

On Mon, Aug 24, 2015 at 4:50 PM, Priya K <[email protected]> wrote:

> Hello everyone,
>
> I have a doubt in git stashing. Pls help to find it out.
>
> I have narrated the doubt as follows:
>
> 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.
>
> -----
> Regards,
> Priya K
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> ILUGC Mailing List Guidelines:
> http://ilugc.in/mailinglist-guidelines
>
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to