[...] do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 747eee5 rebuild with tests and docs fatal: HEAD does not point to a branch No conditional flags passed from available: --with : --without: python2 python3 Available branches: master Searching for tag tld/python-sphinxcontrib-0-6... Searching for tag tld/python-sphinxcontrib-0-6... Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/python-sphinxcontrib-0-6.src.rpm exit status 0 Tagging with prefix: tld/ HEAD is now at 747eee5 rebuild with tests and docs fatal: HEAD does not point to a branch No conditional flags passed from available: --with : --without: python2 python3 Writing git revision for tag tld/python-sphinxcontrib-0-6 On detached HEAD. Use -r BRANCHNAME to override error: Macro %_builddir has empty body error: Macro %_builddir has empty body Executing(--clean): env -i TMP=/home/users/builder/tmp HOME=/home/users/builder PATH=/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin TMPDIR=/home/users/builder/tmp /bin/sh -e /home/users/builder/tmp/rpm-tmp.46492 + umask 022 + cd /home/users/builder/rpm/BUILD Begin-TLD-Builder-Info Build-Time: user:1.49s sys:0.48s real:2.96s (faults io:0 non-io:77537) Files queued for ftp: 3947 python-sphinxcontrib-0-6.src.rpm 194 python-sphinxcontrib-0-6.src.rpm.uploadinfo End-TLD-Builder-Info