rebase for lyfe! Just don't force push on master.
2. Pull master just before you push.
3. If there are new commits, rebase onto master again.
If everyone on the team follows these 3 rules, it won't get too messy to untangle.
There's an xkcd about this I think.