I've been using SVN for some time and is now using Git on a project. I am unsure exactly what to do after I've resolved conflicts after I've done a git pull. I am using tortoise GIT by the way.
So in most cases I can do my commits and then pull and it will automatically merge and I can proceed to push. However if there is a conflict, it asks me to solve the conflicts. I do that using the built in tools for tortoiseGit. Then it asks me to commit, and I get big list of every single modified file in the project.
Now, many of these are local changes should never be committed.. but I read this git blog: http://randyfay.com/node/89 , more specifcally:
One user of Tortoise Git would do a pull, have a merge conflict, resolve the merge conflict, and then look carefully at his list of files to be committed back when he was committing the results. There were lots of files there, and he knew that the merge conflict only involved a couple of files. For his commit, he unchecked all the other files changes that he was not involved in, committed the results and pushed the commit.
How do I know which files I must select and commit to now screw up the state of the git repository?
EDIT: This sums it up nicely, something that has occured to me, we fixed but we need to understand how to prevent in the future.
When several people are committing... and I pull their work into mine, by default an automatic merge takes place. I have to push that merge commit back and not mess it up, or things go bad.
The situation I'm describing happened when a pull with its automatic merge happened. Most of the merge (as usually happens) was successful. But one thing conflicted. The conflict was resolved. But in this case the developer didn't commit all the other things (that were successfully merged and automatically added to the index.). He only committed the thing that he had resolved (that he understood). He didn't know that he was responsible for all that other merged stuff that had been successfully merged and added to his index. That's the story of this disaster.