Posts tagged “git”
-
What happens when you reset a few commits and force-push?
Force-pushing after a reset moves the branch pointer on the server; it doesn't delete anything. The dropped commits live on in reflogs, in every teammate's clone and, on GitHub, by SHA. What each teammate sees next depends on how they pull: a merge-pull brings the commits back, a rebase-pull…
-
Trunk-based development or Git flow?
For a SaaS that deploys often, trunk-based development with short-lived branches and feature flags is faster and safer. Git flow's long-lived branches fit products with versioned releases you must support in parallel. How to choose, and what each needs to work.