Posts Tagged ‘git’

brew and git versions

Today I faced something weird:

byte@lovegood~$ brew update
error: RPC failed; result=22, HTTP code = 400
fatal: The remote end hung up unexpectedly
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master

I ran the brew doctor to find out my git version was outdated. Turns out you need “Git 1.7.10 or newer is required to perform checkouts over HTTPS from GitHub.” I had! Upgraded it to now and all is well.

Bitbucket does git

I’ve been a paying Github customer for quite some time. I like having private repositories. I didn’t realise that Bitbucket was purchased by Atlassian, and more interestingly, they’re now offering Git support.

For me, this beats the pants off Github. There might be more community at Github (cue: how Sourceforge is sort of dying), and I’m not ditching Github, but I’m definitely realising I can save money from now on (Github’s cheapest plans start at $7/month for private repos).

So how does Bitbucket compare in terms of pricing? 5 free users for private repositories. Unlimited public/private repositories. If I hit more than 5, the next 5 users cost $2/month each ($10/month for 10 users). Clear win.

Bitbucket also has a migration tool on the Web that allows you to import repositories. It didn’t take much work for me, and I’ve just cancelled my Github subscription. I’m not cancelling my Github account because whatever is public still works… but for private stuff, Bitbucket seems to be the winner.

Interactive git add

I’ve been using git a lot more (its become my personal favourite; though on a daily basis I have to context switch between Bazaar and SVN as well – glad that I’ve stopped using CVS and BitKeeper) and am really liking it. Recently, I found out that git add has an interactive mode!

You can add a whole bunch of files real easily. Ditto with reverting changes. You can also add certain lines of a file (this is seriously useful).

Go give git add -i a twirl. Any other good git tips?