-
Couldn't load subscription status.
- Fork 5
SET UP
These are the steps to set up the workspace for the project for Code4Fun members:
1. Create Github account If you do not have a Github account, create one at https://github.com
2. Code Editor
- Set up a code editor.
- I suggest using Visual Studio Code. VS Code can be downloaded at https://code.visualstudio.com/
- A link you can also take a look at if you want to use VS Code: https://code.visualstudio.com/docs/editor/versioncontrol
3. Set up Git Follow the instructions on the link below to install git https://www.linode.com/docs/development/version-control/how-to-install-git-on-linux-mac-and-windows/
4. Fork the repository
- Go to https://github.com/bte234/code4fun and click Fork (the button on the top right corner next to star and watch)
- A Fork Repository (basically a copy of the project) will be added to your profile
5. Set up local environment
-
Open the fork repository from your profile
-
Press the 'Clone or Download' button (the big green button on the right side)
-
In the Clone with HTTPs section, click the clipboard symbol to copy the clone URL for the repository.
-
Open terminal
-
Go to the folder that you want the project to be in (using 'cd' command)
-
Type 'git clone', and paste the url that you copied before, and hit enter
-
A folder named 'code4Fun' will be created, go to the folder by using the command 'cd code4fun' (MacOS) or 'cd/code4fun' (Windows).
-
Set up your name and email addresses for future commits:
-
git config user.name "Your Name" (git config --global user.name "Your Name" if you want the name to be for all repository)
-
git config user.email "your email" (git config --global user.email "your email" if you want the email to be for all repository)
-
6. Set up upstream
- From the code4fun folder, type 'git remote add upstream https://github.com/bte234/code4fun.git'
- The upstream remote repository should be set to the origin repository (basically setting the original project as the upper one to the local files).
- Everything should be all set and ready to go! Refer to other Wiki for how to push and pull code
Some useful links
- Get started with Github: https://guides.github.com/activities/hello-world/