Commit before switching workspace.