Skip to content

Category

Development

Published posts in this category.

Four-step diagram for fixing git pull divergent branches: count what diverged with git rev-list left-right count, commit or stash local work, reconcile with rebase, no-rebase or ff-only, then set a pull.rebase or pull.ff default

10/23/2026

How to Fix Git Pull Divergent Branches Error

git pull stopped with 'Need to specify how to reconcile divergent branches' on release day. Here is how I check what diverged and choose rebase, merge or fast-forward, with real Git 2.47 output.

By Muhammad Wilayat Shah

Read
Four exit code checks for a Docker container that keeps restarting: exit 1 or 2 for a startup crash such as a missing variable, exit 0 for a main process that ended, exit 137 with OOMKilled true for memory, and exit 126 or 127 for a command that is missing or not executable

10/20/2026

Why Docker Containers Keep Restarting (and How to Fix It)

A school ERP export worker looped on staging and the team wanted to rebuild the image. The exit code and logs showed a missing variable in two minutes. Here is how to find the real cause of any Docker restart loop.

By Muhammad Wilayat Shah

Read

Page 1 of 1