Committing changes before branching for mongodb