How to use version control (Git) between erpNext and AWS

I have an erpNext instance hosted on AWS. Now i wanted to version control it, so that multiple people can work on it and deploy their changes.
How can i achieve this?

You can refer this for setup