fork-point and squash #1067
-
The help for some of the commands is sometimes a bit difficult to grasp so I'm having some trouble understanding In a young repo, I wanted to squash all of my commits. Fork point not found for branch master; use git machete fork-point master --override-to... (not sure if that's being ellipsized due to my shell or if that's the full output) Maybe I'm missing something, but So, in this case — newish repo, one Is the main concept here that since squash will squash the unique history of the branch, if there is no other branch machete doesn't know which commit to consider the divergence point in order to select the correct set of commits? Appreciate any guidance and explanation! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
👋🏻 Hey there... is Anyway, you can try |
Beta Was this translation helpful? Give feedback.
👋🏻
Hey there... is
master
a root branch (i.e. a branch that does not have any parent in .git/machete)? It's likely that it's the same UX problem as in #930 🤔 I'll fix that soon 🔧Anyway, you can try
git machete squash --fork-point=HEAD~20
for now!