It is more mature and feature-rich, compared to gitx. But it is closed source. However, it is free (as in beer) for the time being in the App Store. So far, the program seems really nice. Let’s see how long I will continue using it, and if I’ll go back to gitx at some point.
If you ever need to delete the “active” branch in a git repository, you need to first switch the active branch. Because you cannot delete the branch you are sitting on… You cannot checkout a branch, as you would usually do. You have to change the symbolic reference called HEAD. You can do this with the symbolic-ref command:
$ git branch
$ git symbolic-ref HEAD refs/heads/somebranch
$ git branch
$ git branch -d deletethis
# Use the name and email address of the author of the last commit.
USER_EMAIL=$(git log -1 --format=format:%ae HEAD)
USER_NAME=$(git log -1 --format=format:%an HEAD)
. $(dirname $0)/post-receive-email
I then also changed the default post-receive-email script, to look like this in the send_mail() function:
if [ -n "$envelopesender" ]; then
/usr/sbin/sendmail -t -f "$envelopesender"
/usr/sbin/sendmail -t -F "$USER_NAME" -f "$USER_EMAIL"
I love gitx, the git GUI for OS X. However, it used to have no push / pull support. Which is pretty important for git. But git and github are beautiful pieces of software. So there is another fork on github, containing push / pull support and more. This little context menu made me happy:
This is not very well documented in the git user manual. Here is what I did:
Go to your central repository, not your working copy. There, change to the hooks directory:
cp post-receive.sample post-receive
git config hooks.mailinglist “email@example.com, firstname.lastname@example.org”
git config hooks.envelopesender email@example.com
git config hooks.emailprefix “New commit: “
Also you should give your project a name: