[...] 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 305df7a... - updated to 1.0.0 (note: new soname) - pl error: HEAD does not point to a branch fatal: @{u} - not something we can merge Available branches: master --2015-01-28 21:50:21-- http://distfiles.pld-linux.org/distfiles/by-md5/6/8/68cbd5b8e505e3fa7da520c3b0fe5a3c/libecap-1.0.0.tar.gz 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: 343468 (335K) [application/x-gzip] Saving to: 'libecap-1.0.0.tar.gz' 0K .......... .......... .......... .......... .......... 14% 762K 0s 50K .......... .......... .......... .......... .......... 29% 1.44M 0s 100K .......... .......... .......... .......... .......... 44% 1.49M 0s 150K .......... .......... .......... .......... .......... 59% 1.53M 0s 200K .......... .......... .......... .......... .......... 74% 11.5M 0s 250K .......... .......... .......... .......... .......... 89% 1.66M 0s 300K .......... .......... .......... ..... 100% 11.4M=0.2s 2015-01-28 21:50:21 (1.63 MB/s) - 'libecap-1.0.0.tar.gz' saved [343468/343468] warning: Could not canonicalize hostname: giant Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/libecap-1.0.0-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 305df7a... - updated to 1.0.0 (note: new soname) - pl error: HEAD does not point to a branch fatal: @{u} - not something we can merge Writing git revision for tag auto/ti/libecap-1.0.0-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 PATH=/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin HOME=/home/users/builder TMPDIR=/home/users/builder/tmp /bin/sh -e /home/users/builder/tmp/rpm-tmp.82601 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf libecap-1.0.0 Begin-PLD-Builder-Info Build-Time: user:2.65s sys:1.15s real:11.62s (faults io:149 non-io:158532) Files queued for ftp: 349146 libecap-1.0.0-1.src.rpm 185 libecap-1.0.0-1.src.rpm.uploadinfo End-PLD-Builder-Info