Cloud sharing code?

Hi does anyone know of a great place to share code online, but it will like sync in live time with our server/database too. Then if one of our developers updates the code, it will notify me before I allow it to post/update the changes on our server?