git checkout you need to resolve your current index first code example Example: error: you need to resolve your current index first git git reset --merge