See this for reference. https://andrewlock.net/working-with-stacked-branches-in-git-is-easier-with-update-refs/