How to setup a local project from a fork repository on Windows 10 using WSL2.
Fork the repository.
Switch to local development folder:
Clone your forked repository on the local development enviroment.
Add a new upstream repository:
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
Verify both repositories are correct setup:
git remote -v
To sync with the original repository, assure first you are in master branch, after:
git fetch upstream
Merge the changes in your master branch:
git merge upstream/master
Mounting the new folder on debian app:
sudo ln -s /mnt/d/localdevelopment/new-folder /var/www/new-folder
Seting up virtual host in Apache2.The conficuration file is available in /etc/apache2/sites-available.
cd /etc/apache2/sites-available sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mysite.conf
edit mysite.conf with the correct document root and directory.Save the file. Now we need to enable the website
sudo a2ensite mysite.conf
sudo service apache2 restart
In case you want to contribute to the original repository the steps are:
Create a new branch for your changes.
Make yor changes, and commit with a clear message.
Push the changes to your repository. Create a pull request from your repository back to the original one.