[...] If you want to create a new branch to retain commits you create, you may 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 22a8d67 - drop obsolete and outdated manual inclusion of rpm macros fatal: HEAD does not point to a branch Available branches: AC-branch RA-branch master Searching for tag auto/ti/perl-Locale-gettext-1.07-6... Searching for tag auto/ti/perl-Locale-gettext-1_07-6... --2020-04-29 19:01:35-- http://distfiles.pld-linux.org/by-md5/b/c/bc652758af65c24500f1d06a77415019/gettext-1.07.tar.gz 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: 8651 (8.4K) [application/x-gzip] Saving to: 'gettext-1.07.tar.gz' 0K ........ 100% 129M=0s 2020-04-29 19:01:35 (129 MB/s) - 'gettext-1.07.tar.gz' saved [8651/8651] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/perl-Locale-gettext-1.07-6.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 22a8d67 - drop obsolete and outdated manual inclusion of rpm macros fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/perl-Locale-gettext-1.07-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.55128 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf Locale-gettext-1.07 Begin-TLD-Builder-Info Build-Time: user:1.07s sys:0.43s real:3.00s (faults io:0 non-io:85395) Files queued for ftp: 13916 perl-Locale-gettext-1.07-6.src.rpm 196 perl-Locale-gettext-1.07-6.src.rpm.uploadinfo End-TLD-Builder-Info