Save changes for switching to another branch