Version control with nextcloud

I hope i put this in the right place but what i want to do is set up version control with my home cloud server with nextcloud. How do i go around doing this