- See
materials/slides
for the weekly lecture slides. - See
materials/notes
for the weekly lecture notes. - See
materials/sourcecode
for the code examples shown in the notes.
NOTE: Depending on your operating system, you might have to install Git manually before using it with RStudio. You will find detailed instructions here.
- In RStudio, navigate to a folder on your hard-disk where you want to have a local copy of this course's GitHub repository.
- In RStudio, switch to the Terminal, and type the following command.
git clone https://github.com/umatter/BigData.git
This creates a new directory BigData
with all the course material in it.
Whenever there are some updates to the course's repository on GitHub, you can update your local copy with:
git pull
(Make sure you are in the BigData
folder when running git pull
.)
-
Go to
https://github.com/umatter/BigData
, click on the 'Fork' button in the upper-right corner (follow the instructions). -
Clone the forked repository (see the cloning of a repository above for details). Assuming you called your forked repository
BigData-forked
, you run the following command in the terminal (replacing<yourgithubusername>
:
git clone https://github.com/`<yourgithubusername>`/BigData-forked.git
- Switch into the newly created directory:
cd BigData-forked
- Set a remote connection to the original repository
git remote add upstream https://github.com/umatter/BigData.git
You can verify the remotes of your local clone of your forked repository as follows
git remote -v
You should see something like
origin https://github.com/<yourgithubusername>/BigData-forked.git (fetch)
origin https://github.com/<yourgithubusername>/BigData-forked.git (push)
upstream https://github.com/umatter/BigData.git (fetch)
upstream https://github.com/umatter/BigData.git (push)
- Fetch changes from the original repository. New material has been added to the original course repository and you want to merge it with your forked repository. In order to do so, you first fetch the changes from the original repository:
git fetch upstream
- Make sure you are on the master branch of your local repository:
git checkout master
- Merge the changes fetched from the original repo with the master of your (local clone of the) forked repo.
git merge upstream/master
- Push the changes to your forked repository on GitHub.
git push
Now your forked repo on GitHub also contains the commits (changes) in the original repository. If you make changes to the files in your forked repo. you can add, commit, and push them as in any repository. Example: open README.md
in a text editor (e.g. RStudio), add # HELLO WORLD
to the last line of README.md
, and save the changes. Then:
git add README.md
git commit -m "hello world"
git push