[...] 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 c068ef7... - updated to 2.9.2 fatal: HEAD does not point to a branch Available branches: master --2015-07-22 08:34:33-- http://distfiles.pld-linux.org/distfiles/by-md5/9/9/99eebf171e6c7bffc42d4fc430d47454/xf86-input-evdev-2.9.2.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: 387095 (378K) [application/x-bzip2] Saving to: 'xf86-input-evdev-2.9.2.tar.bz2' 0K .......... .......... .......... .......... .......... 13% 783K 0s 50K .......... .......... .......... .......... .......... 26% 1.48M 0s 100K .......... .......... .......... .......... .......... 39% 1.52M 0s 150K .......... .......... .......... .......... .......... 52% 1.59M 0s 200K .......... .......... .......... .......... .......... 66% 11.5M 0s 250K .......... .......... .......... .......... .......... 79% 1.72M 0s 300K .......... .......... .......... .......... .......... 92% 11.5M 0s 350K .......... .......... ........ 100% 11.0M=0.2s 2015-07-22 08:34:33 (1.85 MB/s) - 'xf86-input-evdev-2.9.2.tar.bz2' saved [387095/387095] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-driver-input-evdev-2.9.2-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at c068ef7... - updated to 2.9.2 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-driver-input-evdev-2.9.2-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.85611 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xf86-input-evdev-2.9.2 Begin-PLD-Builder-Info Build-Time: user:2.76s sys:1.33s real:10.16s (faults io:0 non-io:210454) Files queued for ftp: 393230 xorg-driver-input-evdev-2.9.2-1.src.rpm 201 xorg-driver-input-evdev-2.9.2-1.src.rpm.uploadinfo End-PLD-Builder-Info