pull first, then change branch
using git fetch for updating repositories