[...] 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 205932b... - updated to 1.2.0 (now uses libXfont2) fatal: HEAD does not point to a branch Available branches: AC-branch RA-branch RA-branch-security djrzulf-XFree86-4_3_0 master Searching for tag auto/ti/xorg-app-xfs-1.2.0-1... Searching for tag auto/ti/xorg-app-xfs-1_2_0-1... --2018-03-12 16:02:17-- http://distfiles.pld-linux.org/distfiles/by-md5/b/4/b4d2e644bfb35cae8858d2411501b07e/xfs-1.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: 233957 (228K) [application/x-bzip2] Saving to: 'xfs-1.2.0.tar.bz2' 0K .......... .......... .......... .......... .......... 21% 1.20M 0s 50K .......... .......... .......... .......... .......... 43% 2.38M 0s 100K .......... .......... .......... .......... .......... 65% 43.7M 0s 150K .......... .......... .......... .......... .......... 87% 156M 0s 200K .......... .......... ........ 100% 1.47M=0.08s 2018-03-12 16:02:17 (2.74 MB/s) - 'xfs-1.2.0.tar.bz2' saved [233957/233957] Building target platforms: i686-linux Wrote: /home/users/builder/rpm/SRPMS/xorg-app-xfs-1.2.0-1.src.rpm exit status 0 Tagging with prefix: auto/ti/ HEAD is now at 205932b... - updated to 1.2.0 (now uses libXfont2) fatal: HEAD does not point to a branch Writing git revision for tag auto/ti/xorg-app-xfs-1.2.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 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.82934 + umask 022 + cd /home/users/builder/rpm/BUILD + rm -rf xfs-1.2.0 Begin-TLD-Builder-Info Build-Time: user:0.98s sys:0.34s real:2.61s (faults io:0 non-io:124249) Files queued for ftp: 242821 xorg-app-xfs-1.2.0-1.src.rpm 190 xorg-app-xfs-1.2.0-1.src.rpm.uploadinfo End-TLD-Builder-Info