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