[...] 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 7d4273b... - release 10 (by relup.sh) fatal: HEAD does not point to a branch Available branches: AC-branch PLD_1_0_freez RA-branch master --2015-04-06 14:47:14-- http://distfiles.pld-linux.org/distfiles/by-md5/5/4/54eabbb38d2076ded6d271e1ee4d0783/autotrace-0.31.1.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: 362718 (354K) [application/x-gzip] Saving to: 'autotrace-0.31.1.tar.gz' 0K .......... .......... .......... .......... .......... 14% 755K 0s 50K .......... .......... .......... .......... .......... 28% 1.44M 0s 100K .......... .......... .......... .......... .......... 42% 1.48M 0s 150K .......... .......... .......... .......... .......... 56% 1.54M 0s 200K .......... .......... .......... .......... .......... 70% 11.5M 0s 250K .......... .......... .......... .......... .......... 84% 1.67M 0s 300K .......... .......... .......... .......... .......... 98% 11.5M 0s 350K .... 100% 7.97M=0.2s 2015-04-06 14:47:14 (1.70 MB/s) - 'autotrace-0.31.1.tar.gz' saved [362718/362718] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/autotrace-0.31.1-10.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 7d4273b... - release 10 (by relup.sh) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/autotrace-0.31.1-10 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.72380 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf autotrace-0.31.1 Begin-PLD-Builder-Info Build-Time: user:4.25s sys:1.94s real:16.91s (faults io:0 non-io:299261) Files queued for ftp: 372679 autotrace-0.31.1-10.src.rpm 189 autotrace-0.31.1-10.src.rpm.uploadinfo End-PLD-Builder-Info