[Gambas-user] Git
Tobias Boege
taboege at gmail.com
Fri Aug 10 20:55:31 CEST 2018
On Fri, 10 Aug 2018, Jussi Lahtinen wrote:
> Occasionally I get this message when trying to update the sources ("git
> pull" and no, I haven't edited the sources):
>
> "Please, commit your changes or stash them before you can merge.
> Aborting"
>
> And the solution has been "git reset --hard". How to avoid this? Any clue
> why this happens?
>
In that case, git should also give you a list of files it thinks you
altered.
My guess: they are files that are automatically generated and updated by
the compiler or IDE, like .settings and .startup. If you compile Gambas
components from source, for instance, or open them in the IDE, those files
will be changed and git thinks you made some precious changes that you
don't want to accidentally overwrite.
That these autogenerated files are under version control is the actual
error here. That's actually easy to fix and I'll do it if this is indeed
your problem.
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list