[...] 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 ddc3349 up to 0.14 fatal: HEAD does not point to a branch Available branches: master Searching for tag tld/dwz-0.14-1... Searching for tag tld/dwz-0_14-1... --2023-12-06 20:10:22-- http://distfiles.pld-linux.org/by-md5/1/f/1f1225898bd40d63041d54454fcda5b6/dwz-0.14.tar.xz Resolving distfiles.pld-linux.org (distfiles.pld-linux.org)... 193.239.45.41 Connecting to distfiles.pld-linux.org (distfiles.pld-linux.org)|193.239.45.41|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 147428 (144K) [application/octet-stream] Saving to: 'dwz-0.14.tar.xz' 0K .......... .......... .......... .......... .......... 34% 753K 0s 50K .......... .......... .......... .......... .......... 69% 1.53M 0s 100K .......... .......... .......... .......... ... 100% 2.70M=0.1s 2023-12-06 20:10:22 (1.23 MB/s) - 'dwz-0.14.tar.xz' saved [147428/147428] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/dwz-0.14-1.src.rpm exit status 0 Tagging with prefix: tld/ HEAD is now at ddc3349 up to 0.14 fatal: HEAD does not point to a branch Writing git revision for tag tld/dwz-0.14-1 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.69136 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf dwz Begin-TLD-Builder-Info Build-Time: user:0.53s sys:0.17s real:2.27s (faults io:8 non-io:72170) Files queued for ftp: 152715 dwz-0.14-1.src.rpm 180 dwz-0.14-1.src.rpm.uploadinfo End-TLD-Builder-Info