[...] state without impacting any branches by performing another checkout. 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 70995e4... - updated to 1.5.0 fatal: HEAD does not point to a branch Available branches: master --2015-07-28 11:50:56-- http://distfiles.pld-linux.org/distfiles/by-md5/3/0/309762867e41c6fd813da880d8a1bc93/libXrandr-1.5.0.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: 314603 (307K) [application/x-bzip2] Saving to: 'libXrandr-1.5.0.tar.bz2' 0K .......... .......... .......... .......... .......... 16% 778K 0s 50K .......... .......... .......... .......... .......... 32% 1.47M 0s 100K .......... .......... .......... .......... .......... 48% 1.52M 0s 150K .......... .......... .......... .......... .......... 65% 1.62M 0s 200K .......... .......... .......... .......... .......... 81% 11.4M 0s 250K .......... .......... .......... .......... .......... 97% 1.69M 0s 300K ....... 100% 14.0M=0.2s 2015-07-28 11:50:56 (1.55 MB/s) - 'libXrandr-1.5.0.tar.bz2' saved [314603/314603] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-lib-libXrandr-1.5.0-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 70995e4... - updated to 1.5.0 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-lib-libXrandr-1.5.0-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.45264 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf libXrandr-1.5.0 Begin-PLD-Builder-Info Build-Time: user:2.72s sys:1.38s real:10.21s (faults io:0 non-io:190179) Files queued for ftp: 320159 xorg-lib-libXrandr-1.5.0-1.src.rpm 196 xorg-lib-libXrandr-1.5.0-1.src.rpm.uploadinfo End-PLD-Builder-Info