[...] 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 3f26d3c... - release 3 fatal: HEAD does not point to a branch Available branches: master --2015-04-12 11:27:50-- http://df.tld-linux.org/distfiles/by-md5/a/6/a66797b4471e3cbe96575207bfbe252c/alsa-plugins-1.0.29.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: 366077 (357K) [application/x-bzip2] Saving to: 'alsa-plugins-1.0.29.tar.bz2' 0K .......... .......... .......... .......... .......... 13% 1.70M 0s 50K .......... .......... .......... .......... .......... 27% 3.63M 0s 100K .......... .......... .......... .......... .......... 41% 10.9M 0s 150K .......... .......... .......... .......... .......... 55% 10.8M 0s 200K .......... .......... .......... .......... .......... 69% 5.94M 0s 250K .......... .......... .......... .......... .......... 83% 10.8M 0s 300K .......... .......... .......... .......... .......... 97% 11.6M 0s 350K ....... 100% 9.70M=0.07s 2015-04-12 11:27:50 (5.07 MB/s) - 'alsa-plugins-1.0.29.tar.bz2' saved [366077/366077] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/alsa-plugins-1.0.29-3.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 3f26d3c... - release 3 fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/alsa-plugins-1.0.29-3 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.53447 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf alsa-plugins-1.0.29 Begin-PLD-Builder-Info Build-Time: user:2.65s sys:1.19s real:6.48s (faults io:178 non-io:175287) Files queued for ftp: 372229 alsa-plugins-1.0.29-3.src.rpm 191 alsa-plugins-1.0.29-3.src.rpm.uploadinfo End-PLD-Builder-Info