In the Vivado IDE, select to generate a Tcl script that recreates your entire project. The script includes source files, IP, and design configuration. You can check this script into a source control system instead of storing the full project directory.