Git

Describe shortly what happens behind the scenes when you run git branch

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Git runs update-ref to add the SHA-1 of the last commit of the branch you're on into the new branch you would like to create