Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
courses
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
school
courses
Commits
f1288d0c
Commit
f1288d0c
authored
8 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
Updated slides
parent
0a99a8e4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
essential_commands.md
+22
-33
22 additions, 33 deletions
essential_commands.md
installation.md
+18
-2
18 additions, 2 deletions
installation.md
overview.md
+2
-7
2 additions, 7 deletions
overview.md
with
42 additions
and
42 deletions
essential_commands.md
+
22
−
33
View file @
f1288d0c
...
...
@@ -11,13 +11,32 @@ or in other words (more technically)
```
shell
$
git pull
$
git status
$
git add myFile.txt
$
git commit
-m
"myMessage"
$
git add myFile.txt
# example
$
git commit
-m
"myMessage"
# example
$
git push
```
## Nouveau projet : Listes
## Pull the latest version of an existing repository
First, browse to the cloned directory (
`git clone [...]`
):
```
sh
$
cd
practice
```
Then, pull the latest revision:
```
sh
$
git pull
# Already up to date
```
Verify its
`status`
with:
```
sh
$
git status
```
## Creat
Créer l'espace de travail
...
...
@@ -114,33 +133,3 @@ _index_ ou _staging area_
$
git status
# Changes to be commited:
```
<img
src=
"img/git-0-start.png"
class=
"as-is"
/>
<img
src=
"img/git-1-dirty.png"
class=
"as-is"
/>
<img
src=
"img/git-2-add.png"
class=
"as-is"
/>
<img
src=
"img/git-3-commit.png"
class=
"as-is"
/>
## Et dans l'autre sens ?
<img
src=
"img/git-1-dirty.png"
class=
"as-is"
/>
<img
src=
"img/git-4-checkout.png"
class=
"as-is"
/>
<img
src=
"img/git-2-add.png"
class=
"as-is"
/>
<img
src=
"img/git-5-reset.png"
class=
"as-is"
/>
## Rinse and Repeat
This diff is collapsed.
Click to expand it.
installation.md
+
18
−
2
View file @
f1288d0c
...
...
@@ -62,10 +62,11 @@ $ git config -l
This should list the configuration with
`user.name`
and
`user.email`
.
## I need to get `The COBRAToolbox` - How?
## I need to get
<br>
##`The COBRAToolbox` - How?
Simply
`clone`
the repository (i.e., retrieve a copy)
```
sh
$
git clone https://github.com/opencobra/cobratoolbox.git cobratoolbox
```
...
...
@@ -75,3 +76,18 @@ Any other rudimentary method such as
*'I simply download the `.zip` un unzip it - works like a charm!'*
shall
**be avoided**
!
## How do I get any other repository?
You can clone any other repository with:
```
sh
$
git clone https://github.com/userName/myRepo.git myRepo
```
<br>
Clone the training repository with:
```
sh
$
git clone https://git-r3lab.uni.lu/git-training/practice.git practice
```
Note: You may be prompted to enter your credentials.
This diff is collapsed.
Click to expand it.
overview.md
+
2
−
7
View file @
f1288d0c
...
...
@@ -3,15 +3,10 @@
0.
The Terminal
1.
What is
`git`
?
<!--(5 min)//-->
2.
GitHub and GitLab
<!--(5min)//-->
*
Practical session
<!--(5 min)//-->
-
GitLab interface
-
GitHub interface
3.
Installation of
`git`
4.
The 5 essential commands
<!--(10 min)//-->
*
Practical session
<!--(15 min)//-->
-
`clone/pull`
/
`status`
/
`add`
/
`commit`
/
`push`
5.
Branches
<!--(10 min)//-->
*
Practical session
<!--(10 min)//-->
6.
Forks
<!--(10 min)//-->
*
Practical session
<!--(
1
0 min)//-->
7
.
Evaluation
<!--(10 min)//-->
7.
Practical session
<!--(
4
0 min)//-->
8
.
Evaluation
<!--(10 min)//-->
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment