I'm currently experimenting with git and encountered the following problem. I created a python file with one function called f1 and saved it under main.py and committed it to the master branch. I then created a branch called b1 of that, went back to the master and changed the name of that function to f2 (no other changes). Back in the branch b1 I added a second function called new_function. After that I tried to rebase b1 onto master.
I was surprised to see that there was a conflict. Why isn't git seeing that I simply changed the name of f1 to f2 in the master?
Am I doing anything wrong? Any suggestions are appreciated.
Git - like almost any other VCS - does not know symanitcs of the tracked content, so it cannot guess what is conflicting and what not. If you merge or rebase two histories that both changed the same file, this is a conflict and you have to resolve it. Use a propert tool for this (like P4Merge, the best free diff / merge tool I know) and it is easy as pie to resolve the conflict or in your case see that there maybe is not even a real conflict.