[...] 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 46adc21... - release 5 (by relup.sh) fatal: HEAD does not point to a branch Available branches: AC-branch RA-branch master --2015-07-28 10:49:28-- http://distfiles.pld-linux.org/distfiles/by-md5/6/1/61792b2591e4b3adcb7b979af2330fba/sysstat-10.1.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: 301218 (294K) [application/x-bzip2] Saving to: 'sysstat-10.1.6.tar.bz2' 0K .......... .......... .......... .......... .......... 16% 787K 0s 50K .......... .......... .......... .......... .......... 33% 1.46M 0s 100K .......... .......... .......... .......... .......... 50% 1.53M 0s 150K .......... .......... .......... .......... .......... 67% 1.59M 0s 200K .......... .......... .......... .......... .......... 84% 11.6M 0s 250K .......... .......... .......... .......... .... 100% 1.47M=0.2s 2015-07-28 10:49:28 (1.49 MB/s) - 'sysstat-10.1.6.tar.bz2' saved [301218/301218] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/sysstat-10.1.6-5.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 46adc21... - release 5 (by relup.sh) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/sysstat-10.1.6-5 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.4072 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf sysstat-10.1.6 Begin-PLD-Builder-Info Build-Time: user:3.25s sys:1.95s real:11.56s (faults io:0 non-io:247763) Files queued for ftp: 310236 sysstat-10.1.6-5.src.rpm 186 sysstat-10.1.6-5.src.rpm.uploadinfo End-PLD-Builder-Info