Skip to content
Huy Anh Nguyen edited this page Dec 28, 2018 · 12 revisions

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

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

Clone this wiki locally