Repository of the Data Analytics module at ZHAW
ℹ️ NOTICE: Please note that the weekly material will always be available shortly before the course starts.
Create a new codespace on GitHub. Everything should be set up as needed.
Assuming you have
- Visual Studio Code
- git
- Python3
- Created a fork of this repository and set up an SSH key
You can clone this repository to your local computer using:
git clone <repository-url>
where <repository-url>
is the url of your fork (click green button above, Local, SSH).
After that, run:
cd /workspaces/data_analytics # go to your working directory
pip install -r requirements.txt # installs the required Python libraries
Once the course is complete, the folder structure will look like this:
Data Analytics
├── .devcontainer
│ └── .devcontainer.json
├── Week_01
│ ├── ...
├── Week_02
│ ├── ...
├── Week_03
│ ├── ...
├── Week_04
│ ├── ...
├── Week_05
│ ├── ...
├── Week_06
│ ├── ...
├── Week_07
│ ├── ...
├── Week_08
│ ├── ...
├── Week_09
│ ├── ...
├── Week_10
│ ├── ...
├── Week_11
│ ├── ...
├── Week_12
│ ├── ...
├── Week_13
│ ├── ...
├── Week_14
│ ├── ...
├── .gitignore
├── README.md
└── requirements.txt
Before running these commands, make sure you're in your working directory.
If not, use this command:
cd /workspaces/data_analytics # your working directory
You can clear your git history (remove files and folders from the Git index) by using the following commands
git rm -r --cached .
git rm -r --cached ./foldername
git rm --cached <filename>
git remote -v # verify remote url
git remote set-url origin <url_of_your_fork> # set remote url
git push origin main # push to remote
git push --force
git pull --force
Rebase local changes on top of changes from the remote repository.
git config pull.rebase true # run this once for working directory
git pull --tags origin main # updates codebase
Create and change branches
git branch # shows current branch
git checkout main # returns to main branch
git checkout -b week_01 # creates and changes to the new branch 'week_01'
git checkout main # returns to main branch