can you commit on a detached head branch ? code example Example: git return from detached head git checkout <branchname>