Ah, so that is why Git isn't reacting- VS has the file in memory but
doesn't lock it, then overwrites git's changes with whimsical abandon?
On Tuesday, October 30, 2012 6:35:53 PM UTC, charlesmanning wrote:
> I don't think VS is locking the files. Instead, VS has the file open
> and will write back to the file as you do things.
> Depending on how VS does this, file contents can get confused.
> Some of this problem must be blamed on the stupid way VS manages
> projects. It would be sane so separate build and project information
> from session information. VS does not; one file holds the project info
> as well as your session state (which files/tabs are open etc).
> > Sometimes if I have a solution open in Visual Studio when I pull from
> Git (
> > a common situation in this type of development environment ) it seems
> > Visual Studio will have certain files locked so that Git fails to
> > them.
> > When that happens Git doesn't seem to care- it continues the pull and
> > considers my local repository to be up to date. However as the files
> that it
> > hasn't been able to write ( usually .csproj files ) have not been
> > nothing will build in Visual Studio or, worse, everything will build but
> > some new quirky bugs will have been added or files are missing from the
> > project causing unpredictable outcomes.
> > It would be more useful to me if Git was to fail and rollback the pull
> > there are files it cannot overwrite, rather than just ignoring it. I am
> > guessing that this is configurable somewhere but I can't seem to find
> > to search for - can anyone suggest what I need to do?
> > ( if anyone has a good answer to this and wants to win imaginary
> > cookies for their response, I have asked the same thing over on SE:
> > )
> > --
> > You received this message because you are subscribed to the Google
> > "Git for human beings" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msg/git-users/-/qR_nKzcedNYJ.
> > To unsubscribe from this group, send email to
> > For more options, visit this group at
> > http://groups.google.com/group/git-users?hl=en.