How do I fix these false git commits?
1 answer
OK, you are on a separate head and you want to be on master (currently on A), but with a master in D, which is a direct descendant.
git checkout master
# This will fast-forward master to D
git merge D
D 'and C' will no longer be on any branch, so they will not be visible and will eventually be garbage collected.
+4
source to share