Clone the repo or download the install.sh file and keep into your root folder i.e htdocs.
Go to terminal and run the install.sh file [ sh install.sh ]
Please follow the steps asked by the Program itself.
You can also provide a downgraded version of WordPress to install.
Also option to pull the data for demo content for unit test data [ https://codex.wordpress.org/Theme_Unit_Test ]
Also option to pull the data for WooCommerce sample data.
It will also create the .htaccess file to change the permalink.