commit user state to switch to master branch