$ gittree
* 65861db (HEAD, stuck_on_foo, master) bar
* 31282bc foo
$ touch baz
$ git add baz
$ git commit -m 'baz with detached HEAD'
[detached HEAD 64cc08b] baz with detached HEAD
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 baz
$ gittree
* 64cc08b (HEAD) baz with detached HEAD
* 65861db (stuck_on_foo, master) bar
* 31282bc foo
$ git checkout master
Warning: you are leaving 1 commit behind, not connected to
any of your branches:
64cc08b baz with detached HEAD
If you want to keep it by creating a new branch, this may be a good time