Never lose a git commit while rebasing

Summary : rebase.missingCommitsCheck="error" protects against accidentally losing a commit when using git rebase . Assumed audience : folks who use git Type : tip I often interactively rebase git commits at the command line. The editor shows a list of commits. Each entry has one of a few actions. For example, “pick” means to leave the commit alone, while “squash” or “fixup” will combine a commit…