O Git mantém o arquivo alterado ao mudar para uma ramificação diferente

# Short answer:
# Changes on one branch will be carried over to another branch if you haven't
# comitted them yet
Charles-Alexandre Roy