I need assistance figuring out how to work online collaboratively.

Hello.

My friend and I are trying to figure out how we can have our machines work together online to work on a project.

I’ve heard we need a VPN installed and we need some kind of repository like Perforce. Can anyone tell me what I and my friend need to do in order to work together? There are tutorials that don’t talk about the next steps needed.