As a reminder, here's how to update cocos2d to the latest version.
To update the cocos2d-iphone source code to the latest version, change to the directory where you initially downloaded cocos2d-iphone and enter in Terminal.app:
git pull http://github.com/cocos2d/cocos2d-iphone.git
It's the same command you used to initially download the source code.
Just a heads up: when you pull a new cocos2d-iphone version from the git repository there's always a chance that changes made to the engine will break your code. Actually, that is very likely to happen. There may be functions removed, parameters added, variables renamed and plenty of other things changed that may cause your code not to compile. Even if your code compiles the changes to the cocos2d engine may introduce strange bugs and weird behavior. First and foremost it is your responsibility to fix these issues, unless of course there's really a bug in the cocos2d engine itself, which can also happen. This extra work is something you have to come to terms with if you want to develop at the bleeding edge of iPhone game development.
The best strategy for you to remain a happy cocos2d-iphone programmer may seem counter-intuitive at first: pull new cocos2d-iphone updates frequently, as often as daily and before you start working on your code. Even if you don't need a specific bugfix or feature. That way, whatever may break it will most likely be very easy to identify and fix. But if you wait weeks or months before doing a cocos2d-iphone engine update, you may actually be better off not doing it at all and instead just use the cocos2d Project Templates and stick to the cocos2d-iphone version you start your project with. Just know that you'll hardly be able to benefit from the latest cocos2d engine bugfixes and features - it's the price you pay for taking the easy route at the start of a project.
There's one exception to the "update cocos2d daily" rule though: if you get close to releasing your game to the App Store, or completing the latest patch for your game, you should not pull the latest cocos2d-iphone version for a while. Especially not at the very last minute. Chances are that something might break that you'll miss but your users will find out about and give you bad reviews because of it. So while you're stabilizing your own build, one of the rules to ensure that your code remains free of bugs and weird side-effects is not to update the underlying game engine, or any code that you haven't written yourself for that matter. Even if the change to the engine may seem trivial - you never know! So wait until after the App or patch is released before you perform another engine update. And by "released" i mean released, not just submitted to Apple for review. You need to be able to quickly submit another build in case of a rejection by Apple.