Commit fa814cb6 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

First draft version

parent 31cee192
<img src="img/lewagon.png" class="as-is" height="50" />
# <img src="img/git_logo.png" class="as-is"> training
# Starting with Git
##(and Github)
##SBG and MSP groups
LCSB
<br><br><br><br>
<br><br><br><br>
January 19th, 2017
Sylvain Arreckx & Laurent Heirendt
<br><br><br><br>
note:
(**Tuesday**: verify that everybody has a working computer with git installed)
Verify that everyone has a GitHub and a Gitlab account
**Thursday**: interactive session
˜/work/training/cobratoolbox
1. Git (on GitHub and GitLab)
Init (git-r3 / graphique)
clone, add, commit, (diff, log), push and status
branch, checkout (add commit push on a branch)
Demo that if pushed to a branch, we will have a conflict -> submit a PR tto DEVELOP from own branch to avoid that
2. Github
Explain interface
Fork, update the fork
PR, issues (on a dummy test repo)
**Thursday**: Home exercise (30 min)
- Task 1a: Create a function with documentation
- Task 1b: test
- Task 2: Push to forked repo and create a PR
- Bonus Task: Fork the cobratoolbox and update
- Friday: 1h debriefing
......@@ -2,49 +2,49 @@
{
"filename": "index.md",
"attr": {
"data-background": "http://25.media.tumblr.com/b03e53931e2264f97a3e93beae6d3053/tumblr_mtw7hple1a1st5lhmo1_1280.jpg"
"data-background": "../img/sbgBackground.jpg"
}
},
{
"filename": "part-2-git-intro.md",
"attr": {
"data-background": "http://farm5.staticflickr.com/4122/4735516686_62ae6eb0f8_b.jpg"
"data-background": "../img/gray-linen-background-texture_58348.jpg"
}
},
{
"filename": "part-3-installation.md",
"attr": {
"data-background": "http://farm7.staticflickr.com/6128/5932561907_c325e9b981_b.jpg"
"data-background": "../img/gray-linen-background-texture_58348.jpg"
}
},
{
"filename": "part-4-first-repo.md",
"attr": {
"data-background": "img/dark.jpg"
"data-background": "../img/gray-linen-background-texture_58348.jpg"
}
},
{
"filename": "part-5-branches.md",
"attr": {
"data-background": "img/dark.jpg"
"data-background": "../img/gray-linen-background-texture_58348.jpg"
}
},
{
"filename": "part-6-remote.md",
"attr": {
"data-background": "img/dark.jpg"
"data-background": "../img/gray-linen-background-texture_58348.jpg"
}
},
{
"filename": "part-7-github-pages.md",
"attr": {
"data-background": "img/dark.jpg"
"data-background": "../img/gray-linen-background-texture_58348.jpg"
}
},
{
"filename": "part-8-thanks.md",
"attr": {
"data-background": "http://24.media.tumblr.com/da6bdeb8f4e2e4104b539e5ad755c1cf/tumblr_muuhikhivh1st5lhmo1_1280.jpg"
"data-background": "../img/gray-linen-background-texture_58348.jpg"
}
}
]
<img src="img/git_logo.png" class="as-is" />
# Overview
note:
Put your speaker notes here.
You can see them pressing 's'.
1. What is `git`? Why do I need it? (5 min)
2. GitHub and GitLab (5min)
* Practical session (5 min)
3. The 5 essential commands (10 min)
* Practical session (15 min)
4. Branches (10 min)
* Practical session (10 min)
5. Forks (10 min)
* Practical session (10 min)
6. Evaluation (10 min)
## Origin
## What is `git`? Why do I need it?
![](img/linus.jpg)
Designed and implemented in 2005 by **Linus Torvalds**
![](img/git_definition.png)
note:
I'm an egotistical bastard, and I name all my projects after myself.
First Linux, now git.
## Décentralisé
## Rapide
## Performant
## The 5 essential commands
`pull, status, add, commit, push` (P-SAC-P)
note:
Put your speaker notes here.
You can see them pressing 's'.
Fullscreen can be activated by typing 'f'.
# Les bases
# The 5 commands
## Mon premier dépôt
......@@ -142,4 +142,4 @@ $ git status
<img src="img/git-5-reset.png" class="as-is" />
## Rinse and Repeat
\ No newline at end of file
## Rinse and Repeat
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment