Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
git_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
orestis.malaspin
git_tutorial
Commits
9f2d4eec
Commit
9f2d4eec
authored
7 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
reformattage git rm
parent
c141fe97
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+2
-0
2 additions, 0 deletions
Makefile
git_tutorial.md
+12
-5
12 additions, 5 deletions
git_tutorial.md
with
14 additions
and
5 deletions
Makefile
+
2
−
0
View file @
9f2d4eec
...
...
@@ -4,6 +4,8 @@ BEAMEROPTIONS += --default-image-extension=pdf
BEAMEROPTIONS
+=
-V
theme:metropolis
BEAMEROPTIONS
+=
-V
themeoptions:numbering
=
none
-V
themeoptions:progressbar
=
foot
BEAMEROPTIONS
+=
-V
fontsize
=
smaller
BEAMEROPTIONS
+=
--highlight-style
espresso
default
:
git_tutorial.md
pandoc
-s
$(
BEAMEROPTIONS
)
-o
git_tutorial.pdf git_tutorial.md
\ No newline at end of file
This diff is collapsed.
Click to expand it.
git_tutorial.md
+
12
−
5
View file @
9f2d4eec
...
...
@@ -357,8 +357,6 @@ Changes to be committed:
[master 8f76d90] efface donc ce fichier
1 file changed, 1 deletion(-)
delete mode 100644 premierfichier.c
[malaspor@perka tutorial]$ ls -ltr
total 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
# Retirer un fichier du contrôle de version (2/3)
...
...
@@ -366,6 +364,8 @@ total 0
## Commande: `git rm`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{.bash .numberLines}
[malaspor@perka tutorial]$ ls -ltr
total 0
[malaspor@perka tutorial]$ git reset bbb151324289dc2f85468f5721ec1021692dd216
Unstaged changes after reset:
D premierfichier.c
...
...
@@ -380,6 +380,15 @@ Changes not staged for commit:
deleted: premierfichier.c
no changes added to commit (use "git add" and/or "git commit -a")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
# Retirer un fichier du contrôle de version (3/3)
## Commande: `git rm`
On peut retrouver le fichier dans l'historique.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{.bash .numberLines}
[malaspor@perka tutorial]$ ls -ltr
total 0
[malaspor@perka tutorial]$ git checkout premierfichier.c
...
...
@@ -387,8 +396,6 @@ total 0
total 4
-rw-r--r-- 1 malaspor malaspor 17 5 mar 11:13 premierfichier.c
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
% Reformatter ces slides en faire 3.
# Commandes et concept un peu plus avancés
...
...
@@ -397,7 +404,7 @@ Il existe une **grande quantité** de fonctionnalités non discutées ici:
1.
`.gitignore`
2.
`git branch`
3.
`git merge`
4.
`git trois
lignes
de
commandes
incompréhensibles
que
seul stackoverflow
peut
vous
donner`
4.
`git trois
-
lignes
-
de
-
commandes
-
incompréhensibles
-
que
-
seul stackoverflow
-
peut
-
vous
-
donner`
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