[...] 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 2738587... - updated to 2.3.4 - dropped xf86gtfmode (now driver requires Xserver 1.6 anyway) fatal: HEAD does not point to a branch Available branches: master --2015-07-28 11:50:38-- http://distfiles.pld-linux.org/distfiles/by-md5/a/8/a893c37c589f7a31cea929a5d896a0e2/xf86-video-vesa-2.3.4.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: 285675 (279K) [application/x-bzip2] Saving to: 'xf86-video-vesa-2.3.4.tar.bz2' 0K .......... .......... .......... .......... .......... 17% 781K 0s 50K .......... .......... .......... .......... .......... 35% 1.47M 0s 100K .......... .......... .......... .......... .......... 53% 1.53M 0s 150K .......... .......... .......... .......... .......... 71% 1.59M 0s 200K .......... .......... .......... .......... .......... 89% 11.5M 0s 250K .......... .......... ........ 100% 1.06M=0.2s 2015-07-28 11:50:39 (1.43 MB/s) - 'xf86-video-vesa-2.3.4.tar.bz2' saved [285675/285675] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-driver-video-vesa-2.3.4-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 2738587... - updated to 2.3.4 - dropped xf86gtfmode (now driver requires Xserver 1.6 anyway) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-driver-video-vesa-2.3.4-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.70231 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xf86-video-vesa-2.3.4 Begin-PLD-Builder-Info Build-Time: user:2.79s sys:1.35s real:5.16s (faults io:0 non-io:192900) Files queued for ftp: 291022 xorg-driver-video-vesa-2.3.4-1.src.rpm 200 xorg-driver-video-vesa-2.3.4-1.src.rpm.uploadinfo End-PLD-Builder-Info