How smart is git in rebasing in python? -


i'm experimenting git , encountered following problem. created python file 1 function called f1 , saved under main.py , committed master branch. created branch called b1 of that, went master , changed name of function f2 (no other changes). in branch b1 added second function called new_function. after tried rebase b1 onto master.

i surprised see there conflict. why isn't git seeing changed name of f1 f2 in master?

am doing wrong? suggestions appreciated.

you not doing wrong. git preventing potential loss of work. @ point, since function f1 has been changed f2 in master branch - branch b2 still refers f1. so, when git rebase, git ask "so name want f1,f2 or else.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -