Resolve Branch is Ahead of Origin with Git Bash on Windows - DevPops-Inc/windows GitHub Wiki

• The following resolution is for if your branch is ahead of ‘origin/main’ by a number of commits.
image

• Type git reset --hard origin/main and press the Enter key to reset the changes in your local main branch.
image

• Type git status and press the Enter key to your branch will be up to date.
image

⚠️ **GitHub.com Fallback** ⚠️