GIT сохраняет измененный файл при переключении на разные ветви

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