[...] changes and commit them, and you can discard any commits you make in this 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 fe89b44... - release 3 (by relup.sh) fatal: HEAD does not point to a branch Available branches: AC-branch master --2015-07-24 12:15:00-- http://distfiles.pld-linux.org/distfiles/by-md5/1/2/12b0a1e03013ae315d5f9088261d4f2b/libview-0.6.6.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: 304958 (298K) [application/x-bzip2] Saving to: 'libview-0.6.6.tar.bz2' 0K .......... .......... .......... .......... .......... 16% 781K 0s 50K .......... .......... .......... .......... .......... 33% 1.47M 0s 100K .......... .......... .......... .......... .......... 50% 1.52M 0s 150K .......... .......... .......... .......... .......... 67% 1.59M 0s 200K .......... .......... .......... .......... .......... 83% 11.5M 0s 250K .......... .......... .......... .......... ....... 100% 1.64M=0.2s 2015-07-24 12:15:00 (1.51 MB/s) - 'libview-0.6.6.tar.bz2' saved [304958/304958] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/libview-0.6.6-3.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at fe89b44... - release 3 (by relup.sh) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/libview-0.6.6-3 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.57426 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf libview-0.6.6 Begin-PLD-Builder-Info Build-Time: user:3.37s sys:1.71s real:13.87s (faults io:0 non-io:219778) Files queued for ftp: 311406 libview-0.6.6-3.src.rpm 185 libview-0.6.6-3.src.rpm.uploadinfo End-PLD-Builder-Info