Forked repo's commits are ahead of the base repo. #58914
-
Select Topic AreaQuestion BodyHi Team, I have a forked repo and this is the base repo. I am trying to sync my fork with base repo through GUI/CLI. Both logs are suggesting to use the pull request but there are 0 files changed. When I click on Please let me know how to resolve this issue. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
The error message sounds like you have a branch protection rule for the |
Beta Was this translation helpful? Give feedback.
-
|
I have disabled the branch protection for the $ git fetch upstream $ git push origin main If you see in my fork one more commit got added into the ahead of commits list. Please share me the correct commands to fix this issue. |
Beta Was this translation helpful? Give feedback.
-
|
It seems like you're merging with merge commits. If you want the Warning: That reset will permanently discard any commits you have added to your Two more notes:
|
Beta Was this translation helpful? Give feedback.
-
|
To quickly check whether a forked repo is ahead or behind the base, I built branch-watch. |
Beta Was this translation helpful? Give feedback.


That still is a branch protection rule, you'd need to use the "delete" button on this screen:
Whether you do a soft or hard reset changes only how your local data is treated, it doesn't matter for pushing.