Fixing ‘Your branch is ahead by xx commits’ Error | Tech, Trading, and Business Systems

“Your branch is ahead by xx commits’

Drop all local commits with

git reset --hard origin/<branch-name>