git-school / visualizing-git

:framed_picture: Visualize how common Git operations affect the commit graph

Home Page:http://git-school.github.io/visualizing-git/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Checkout checkout before first commit breaks checkout

AngelOnFira opened this issue · comments

Repro steps:

git commit
git checkout HEAD~1
git checkout HEAD~1
// Cannot read property 'push' of undefined
git checkout master
// Cannot read property 'id' of null