[...] If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at 04b2933... - updated to 1.2.9 fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-driver-video-neomagic-1.2.9-1... Searching for tag auto/ti/xorg-driver-video-neomagic-1_2_9-1... --2018-03-15 09:17:44-- http://distfiles.pld-linux.org/distfiles/by-md5/4/b/4b5b52e9da0a954cd3d6068a33975bc1/xf86-video-neomagic-1.2.9.tar.bz2 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: 340789 (333K) [application/x-bzip2] Saving to: 'xf86-video-neomagic-1.2.9.tar.bz2' 0K .......... .......... .......... .......... .......... 15% 1.20M 0s 50K .......... .......... .......... .......... .......... 30% 2.26M 0s 100K .......... .......... .......... .......... .......... 45% 325M 0s 150K .......... .......... .......... .......... .......... 60% 248M 0s 200K .......... .......... .......... .......... .......... 75% 2.65M 0s 250K .......... .......... .......... .......... .......... 90% 99.3M 0s 300K .......... .......... .......... .. 100% 67.8M=0.08s 2018-03-15 09:17:44 (3.96 MB/s) - 'xf86-video-neomagic-1.2.9.tar.bz2' saved [340789/340789] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-driver-video-neomagic-1.2.9-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 04b2933... - updated to 1.2.9 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-driver-video-neomagic-1.2.9-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.4501 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xf86-video-neomagic-1.2.9 Begin-TLD-Builder-Info Build-Time: user:0.51s sys:0.10s real:2.19s (faults io:0 non-io:91755) Files queued for ftp: 346787 xorg-driver-video-neomagic-1.2.9-1.src.rpm 204 xorg-driver-video-neomagic-1.2.9-1.src.rpm.uploadinfo End-TLD-Builder-Info