-
Notifications
You must be signed in to change notification settings - Fork 1
P02: Development Environment Setup
GitHub is the source code repository for us. When we create a piece of code, we could "commit" the code into this repository. Other people will be able to "get" this by updating the code from the repository.
Git is the software utility GitHub (and many other repositories) uses. Use this link to download and install git.
After installed git, you should be able to run the command line
$ git version
git version 2.9.3 (Apple Git-75)
Now you could download the funbots repository to your local computer. First, create your working directory, such as ~/git/funbots, cd to that directory and do:
git clone https://YOUR_ID@github.com/melvinma/funbots.git funbots
Now, you should be able to see ~/git/funbots/funbots.
You should be able to simply use the following commands (there are many more if you have time to learn):
git pull origin master ## get the latest code from source.
git status . ## check the status of the files
git add ## add a file to the staging area
git rm ## remove a file from the staging area
git commit -m "" ## commit a change to the local repository
git push orgin master ## push the changes to the GitHub, now your friends could see them
Here is a good video about the installation. Just install Atom, enable autosave, then install atom-runner package. For mac, we need to do this one additional step in the configuration:
'runner':
'scopes':
python: "python3"