Interview Prep/Git & GitHub/Branching and workflow design

How do you version internal libraries consumed from Git?

IntermediateProductionBranching and workflow design
Answer

Tag releases with semantic versions and consume tags (or published packages), never a branch. Pin by tag or SHA in dependency files, use Renovate or Dependabot to propose upgrades, and avoid git+https://...#main dependencies in production builds because they make builds non-reproducible.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching and workflow design