onlywei / explain-git-with-d3

Use D3 to visualize simple git branching operations.
MIT License
1.71k stars 390 forks source link

Allow merge commits in detached head state #59

Open waldyrious opened 6 years ago

waldyrious commented 6 years ago

In http://onlywei.github.io/explain-git-with-d3/#freeplay:

Do whatever you want in this free playground.

$ git checkout HEAD
$ git commit
$ git commit
# generated hash: d525e9e...
$ git checkout master
$ git checkout -b branch1
$ git commit
$ git commit
git checkout d525e9e
$ git merge branch1
Not a good idea to make commits while in a detached HEAD state.

I thought I was allowed to do anything here? 😄