In case, you have branch's conflict and don't want the commits caused by conflicts.
You are using the branch called "feat/api" and when switching, this error appears.
Switched to branch 'feat/api' Your branch and 'origin/feat/api' have diverged, and each has 2 and 5 submissions, respectively. (use "git pull" to merge the remote branch into yours)