Clone this into your xampp htdocs folder
- Fork the repository into your own github account. You will find this option at the top right corner of the body. Across the repository name. If you are part of multiple organizations, github will ask you to choose which identity you want to fork the repository into. Find your account on that list.
-
Head to your github account and clone (do not download) your own copy of the repository.
-
Head over to your xampp htdocs folder and open git bash/powershell/cmd in that folder. To do so, just right click and select "Git Bash Here": If you cannot find "Git Bash Here", hold
Shift
on your keyboard and right click. You should be able to find the option to open either PowerShell or Command Prompt. Run the following commands in order:
# git clone [copied link here]
# cd im2
# git remote add elle https://github.com/IM2-Project/php
-
Before you do any code, always run
git pull elle master
to make sure that your code is up to date with all the recent changes. -
Once you have changes, there should be an icon on your VSCode Git tab that shows the number of files you've made changes in.
-
Follow this quick video to commit and push your changes to your fork. In the little box you see me typing, please specify what changes exactly you have made. Example commit names could be 'fixed create table button', or 'changed UI of login.php page' so we can keep track of the changes we've made.
-
Once you push your changes into your own repository and create a pull request. To do so, head to your forked repo and find the "Pull Request" option. If you see that your commits are checked green with "Able to merge", it means that you have no conflicts with the current code. So, simply create the request and add a description. If it says there are current conflicts, please run the command
git pull elle master
in yourphp
cloned repository and see the conflicting changes. This is easily done in VSCode. Once all conflicts are merged, push your changes and recreate the PR (pull request).
This way, if we find any errors, we can track where it went wrong.
If lisod sabton, let me know so I can make a video.