-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error fatal: refusing to merge unrelated histories
appears
#10
Comments
This is because:
So you don't have enough past commits to find a common ancestor. With your current configuration and assuming both of your branches are in sync when you update your GitHub action, fetching 2 commits should be enough (as the previous commit should be the common ancestor). But you may use more than two to have some margin for errors.
|
I think the easiest workaround for this is to use |
Thanks for the helpful answers @Cyberboss and @killianhuyghe ! If I am not wrong @JorgeAguilarOrozco there is nothing we can do on this repo side, except perhaps improve the documentation (any PR on that aspect would be welcome). So do you agree if I close the issue? |
I was trying to merge automatically from
master
branch to thedevelop
branch. The result is the following:This is my YAML file:
The text was updated successfully, but these errors were encountered: