Explaination:
Q: Why Do we need to put it in the repo inside htdocs folder?
A: Its easier for you to edit the code while still able to use XAMPP to display the page on browser. Yet you can push the code whenever you want without making a mess.
Q: What should we do if we ever get messed up the files inside in the folder "RBS" on our machine?
A: You can just remove the whole RBS
folder inside htdocs
folder and clone it back again. (Be sure to only remove RBS
folder not the htdocs
parent folder)
Folder Structure:
📁 C:/
|-📁 ...
|-📂 xampp
|-📁 ...
|-📁 htdocs
|-📁 ...
|-📁 RBS
Note: Location of the
xampp
folder can be varies from different user's preferred install location.
-
Open up Git Bash
-
Navigate to htdocs folder
cd /c/xampp/htdocs/
-
Following by typing
git clone https://github.com/PeterDigger/RBS.git
to clone RBS folder
-
Once done cloning, you can close out the Git Bash and open up your favourite code editor to start coding. Good luck!
-
First open up your VS Code
-
Click on to "Clone Git Repository" and paste in our RBS link
-
Make sure choose the location "C:\xampp\htdocs" to store the codes. Then click on "Select Repository Location"
-
Open it by clicking "Open" button
-
Press "Yes" if been prompted to
-
Done and you can start coding. Good luck!