No problem, that is actually the English translation of my name and even I
refer to myself as Gregory sometimes :)

As I said in my mail, you don’t have to commit before switching branches.
You can drop your changes completely with git checkout -- . (note the minus
minus dot part; -- instructs Git to interpret the remaining parameters, dot
in our case, as file/directory names rather than branch names or anything
special) This command tells Git to checkout the latest committed version of
the current directory (omitting a branch/tag/commit ID makes Git assume you
want to checkout HEAD, which is the last commit you checked out or
committed, whichever happened later).

Best,
Gergely

On Wed, Sep 14, 2016, 22:08 Pierre Dutronc <pierre.pas...@gmail.com> wrote:

> Gergely, please pardon my typo as to your name. :-)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to