GIT
Distributed Version Control System
Linus Torvalds (creator of Linux) has quipped about the
name git, which is British English slang for a stupid or
unpleasant person.
Torvalds said: "I'm an egotistical bastard, and I name all my
projects after myself. First 'Linux', now 'git' ".
The man page describes git as "the stupid content tracker".
Download GIT from:
[Link]
git config --global [Link] "Jacques de Hooge"
git config --global [Link] jdeh@[Link]
# Clone remote repository
git clone ://[Link]/QQuick/[Link]
# add file to the staging area (git add . adds everything)
git add [Link]
# first commit
git commit –m“added module support"
# add file to the staging area
git add [Link]
# second commit
git commit –m“added sourcemaps“
# pushes all changes to remote repository
git push origin master
# Update remote from local
git push origin master
# Update local from remote
git pull origin master
contents of the .gitignore file:
*.nogit
*.pyc
*.npp
*.egg-info/
**.__pycache__/
dist/
transcrypt/docs/sphinx/_build/
transcrypt/development/attic/
transcrypt/development/docs/
transcrypt/development/experiments/
transcrypt/development/automated_tests/*/[Link]
transcrypt/development/automated_tests/*/[Link]
transcrypt/development/automated_tests/**/__javascript__/
transcrypt/modules/re/__javascript__/
transcrypt/modules/time/__javascript__/
...
...
# create new branch
git checkout -b develop
# switch to existing branch
git checkout develop
(Make local changes, add and commit)
# upload changes to remote develop branch
git push origin develop
# show all branches
git branch
* develop current branch
master
Second line of defense: offline storage
Keep it simple (and sortable)
Beat systematical errors by chaotic redundancy
GIT essentials
• understanding git
• understanding git 2
• a successful git branching model
• turn feature branch into master
• merge specific files from other branch
• remove files that are listed in .gitignore
• git for computer scientists
On the HR, for optimal support use:
• Git 2.18.0
• VS Code 1.26.1
• Arduino IDE 1.8.6
• Classroom / persoonlijke website.
• HR CMI GitLab server: [Link]
Lokaal project uploaden naar GitLab
First create a new project on GitLab and then:
git remote add origin
[Link]
git push -u origin –all
git push -u origin --tags