[...] 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 69f1940... - updated to 7.0.28 fatal: HEAD does not point to a branch Available branches: master --2015-07-28 11:51:14-- http://distfiles.pld-linux.org/distfiles/by-md5/3/c/3ce2f230c5d8fa929f326ad1f0fa40a8/xproto-7.0.28.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: 300886 (294K) [application/x-bzip2] Saving to: 'xproto-7.0.28.tar.bz2' 0K .......... .......... .......... .......... .......... 17% 784K 0s 50K .......... .......... .......... .......... .......... 34% 1.46M 0s 100K .......... .......... .......... .......... .......... 51% 1.51M 0s 150K .......... .......... .......... .......... .......... 68% 1.59M 0s 200K .......... .......... .......... .......... .......... 85% 11.5M 0s 250K .......... .......... .......... .......... ... 100% 1.53M=0.2s 2015-07-28 11:51:15 (1.49 MB/s) - 'xproto-7.0.28.tar.bz2' saved [300886/300886] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-proto-xproto-7.0.28-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 69f1940... - updated to 7.0.28 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-proto-xproto-7.0.28-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.71937 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xproto-7.0.28 Begin-PLD-Builder-Info Build-Time: user:2.68s sys:1.25s real:4.95s (faults io:0 non-io:190220) Files queued for ftp: 305245 xorg-proto-xproto-7.0.28-1.src.rpm 196 xorg-proto-xproto-7.0.28-1.src.rpm.uploadinfo End-PLD-Builder-Info