[...] 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 a35719e... - fix building with xserver 1.17 - rel 20 fatal: HEAD does not point to a branch Available branches: master Searching for tag auto/ti/xorg-driver-video-v4l-0.2.0-20... Searching for tag auto/ti/xorg-driver-video-v4l-0_2_0-20... --2018-03-15 09:21:07-- http://distfiles.pld-linux.org/distfiles/by-md5/2/2/2251ae2a0a905764941cd7b098e85ad1/xf86-video-v4l-0.2.0.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: 244063 (238K) [application/x-bzip2] Saving to: 'xf86-video-v4l-0.2.0.tar.bz2' 0K .......... .......... .......... .......... .......... 20% 1.21M 0s 50K .......... .......... .......... .......... .......... 41% 2.41M 0s 100K .......... .......... .......... .......... .......... 62% 168M 0s 150K .......... .......... .......... .......... .......... 83% 102M 0s 200K .......... .......... .......... ........ 100% 1.91M=0.08s 2018-03-15 09:21:07 (2.88 MB/s) - 'xf86-video-v4l-0.2.0.tar.bz2' saved [244063/244063] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-driver-video-v4l-0.2.0-20.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at a35719e... - fix building with xserver 1.17 - rel 20 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-driver-video-v4l-0.2.0-20 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.83177 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xf86-video-v4l-0.2.0 Begin-TLD-Builder-Info Build-Time: user:0.51s sys:0.09s real:2.00s (faults io:0 non-io:115917) Files queued for ftp: 286483 xorg-driver-video-v4l-0.2.0-20.src.rpm 200 xorg-driver-video-v4l-0.2.0-20.src.rpm.uploadinfo End-TLD-Builder-Info