Correct git command order to ensure branch is up to date