3 ms·
Maybe you have don this for brevity, but git branch does not create a new commit. "The command’s second form creates a new branch head named <branchname> which
by _ikke_ 15y ago
Maybe you have don this for brevity, but git branch does not create a new commit.
"The command’s second form creates a new branch head named <branchname> which points to the current HEAD, or <start-point> if given."
So after a git branch command, the test branch still points to the same commit as HEAD.
You have to make an additional commit for them to diverge.