[...] 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 9c498c2... - release 6 fatal: HEAD does not point to a branch Available branches: master --2015-07-30 08:39:33-- http://df.tld-linux.org/distfiles/by-md5/6/1/61792b2591e4b3adcb7b979af2330fba/sysstat-10.1.6.tar.bz2 Resolving df.tld-linux.org (df.tld-linux.org)... 46.4.78.55 Connecting to df.tld-linux.org (df.tld-linux.org)|46.4.78.55|: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% 1.40M 0s 50K .......... .......... .......... .......... .......... 33% 2.96M 0s 100K .......... .......... .......... .......... .......... 50% 10.2M 0s 150K .......... .......... .......... .......... .......... 67% 11.5M 0s 200K .......... .......... .......... .......... .......... 84% 4.19M 0s 250K .......... .......... .......... .......... .... 100% 11.5M=0.08s 2015-07-30 08:39:33 (3.79 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-6.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 9c498c2... - release 6 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/sysstat-10.1.6-6 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.73023 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf sysstat-10.1.6 Begin-PLD-Builder-Info Build-Time: user:2.69s sys:1.31s real:4.47s (faults io:0 non-io:217072) Files queued for ftp: 309210 sysstat-10.1.6-6.src.rpm 186 sysstat-10.1.6-6.src.rpm.uploadinfo End-PLD-Builder-Info