Skip to content
Häfner edited this page Apr 6, 2021 · 5 revisions

GIT is a powerful tool to manage your code projects. On linux you should be able to install it via package manager. On Windows we strongly recommend Git for Windows, just pay attention which default editor is set during installation, Vim may not be the best choice, Nano is quite decent.

Here a very shallow introduction to Git:

git clone https://github.com/Victor-Haefner/polyvr.git

This will download the PolyVR repository.

git status

The most important command! tells you in what state your repo is, often gives hints on how to proceed.

git pull
git push

Pull the latest changes from server or push the latest to it.

git add .path.to.file
git commit -am"whatIDid"

Git add tells git to track a file or folder Git commit creates a new commit, a version of your code.

Use gitk to get a visualization of your repo, very useful to track down bugs.

Clone this wiki locally