Brief Git Tutorial
Clone Your Repository
- Download & Install a Git client: follow this.
- Get the git url from your project page (D-INF GitLab). It should have the following format: https://gitlab.inf.ethz.ch/COURSE-NETOS16/<USERNAME>.git or git@gitlab.inf.ethz.ch:COURSE-NETOS16/<USERNAME>.git (for the second URL to work you need to upload an SSH public key first).
- Use your git client to move to the directory that you want to use for your project
- Type: git clone project_url
- More at: Git Basics
Add Content to the Repository
- Add or modify files in your project directory
- Type git add filename to add new files to the git repo
- Commit the changes: git commit -a -m "Commit message"
- Push the changes to the remote repo: git push origin master
- More at: Git Basics
Update Your Local Copy
- Use your git client to move to your project folder
- Type git pull origin master