How To Review Old Branches When The Sql Scheme Has Already Changed

2026-04-29 | 116 words | | #development #tutorials #tips

We all have the type of colleague who is not afraid to create a branch, make a change, and then forget about it for months. When you finally come back to review the branch, the SQL schema has already changed and the code is no longer compatible.

“A Database Error Occurred”

Forget about changing your local SQL scheme. Instead, use git’s feature called –no-commit while fake-merging the old branch into your current branch.

This way, you have a high chance to test the old branch on your current SQL scheme and then discarding the merge.

Command line:

git merge --no-commit old-branch

Lazygit (my current favorite tool):

Lazygit no-commit

Sublime Merge (I still use it to view large diffs):

Sublime Merge no-commit