Source code / project question

Is there to collaborate with another using a real-time updated file of code. i.e. any new changes in the code is automated to publish new edits for group efficiency? I know github is an option, any built-in unreal?

Thanks in advance!