We are using git and the merge workflow. We have lot of git newbies (including me) who either have an SVN or CVS background, or no version control background at all.
Here is a frequent issue we are running into. Many of the team members were
using TortoiseGit. Merge conflicts happened fairly often because of concurrent
changes - or since they did not pull
every day. One user would do a pull, have
a merge conflict, resolve the merge conflict, and then look at the list of files
to be committed back.
But then the file list shows a lot of files, though there were merge conflicts involved in only a few files. While committing, he unchecked all the other files changes that he was not involved in, committed the results and pushed the commit.
Result: All the commits by other people that had been done between this user's previous commit and this one were lost!
First, why does Git or TortoiseGit just show a list of files that the user has nothing to do in the list? Second, what is the correct thing to do in this scenario - any answer from a TortoiseGit perspective will be helpful.