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.
•
• Type git reset --hard origin/main
and press the Enter key to reset the changes in your local main branch.
•
• Type git status
and press the Enter key to your branch will be up to date.
•