Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rendu Outils libres
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
RIEHM Clement
Rendu Outils libres
Commits
66d1b67b
Commit
66d1b67b
authored
3 years ago
by
RIEHM Clement
Browse files
Options
Downloads
Patches
Plain Diff
Ajout de la partie Git
parent
a84f6b1d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rendu.tex
+67
-1
67 additions, 1 deletion
rendu.tex
with
67 additions
and
1 deletion
rendu.tex
+
67
−
1
View file @
66d1b67b
...
@@ -109,6 +109,72 @@ Ajouter \verb|$(vagrant_prompt_info)| au PROMPT dans le themes
...
@@ -109,6 +109,72 @@ Ajouter \verb|$(vagrant_prompt_info)| au PROMPT dans le themes
\subsection*
{
\#
8
}
\subsection*
{
\#
8
}
\subsection*
{
\#
9
}
\subsection*
{
\#
9
}
\subsection*
{
\#
10
}
\subsection*
{
\#
10
}
\section
{
Efficacité de l'environnement de travail
}
\section
{
Git
}
\subsection*
{
\#
1
}
\subsection*
{
\#
1
}
\begin{lstlisting}
[language=bash]
~/git/vagrantssh
$
git init
git status
vagrant up
vagrant halt
git status
\end
{
lstlisting
}
Un dossier .vagrant est créé. L’ajouter dans le fichier gitignore pour l’ignorer.
\begin
{
lstlisting
}
[
language
=
bash
]
echo .vagrant
/
>> .gitignore
git add README.md Vagrantfile srv
/
git commit
-
m "Ajout initial"
git log
git show cdc
5
df
9
f
5
ec
0
abe
55
cc
6
d
825
c
5
c
6008560199688
\end
{
lstlisting
}
\subsection
*
{
\#
2
.
1
}
\begin
{
lstlisting
}
[
language
=
bash
]
git checkout
-
b new
-
branche
-
2000
nvim Vagrantfile
git add
-
p
\end
{
lstlisting
}
Les modification ne sont pas dans le working directory.
\subsection
*
{
\#
2
.
2
}
\begin
{
lstlisting
}
[
language
=
bash
]
git checkout master
git merge new
-
branche
-
2000
git log
git show
8
fa
8008
b
2
c
7
eeb
6
e
55115
f
019
b
6
e
7
ca
3
e
439
a
4
dd
\end
{
lstlisting
}
Spécificité : Le HEAD
-
> master
\begin
{
lstlisting
}
[
language
=
bash
]
commit
8
fa
8008
b
2
c
7
eeb
6
e
55115
f
019
b
6
e
7
ca
3
e
439
a
4
dd
(
HEAD
-
> master, new
-
branche
-
2000
)
\end
{
lstlisting
}
\begin
{
lstlisting
}
[
language
=
bash
]
git branch
*
master
new
-
branche
-
2000
\end
{
lstlisting
}
La branche existe toujours. On peut supprimer la branche.
\subsection
*
{
\#
3
}
\begin
{
lstlisting
}
[
language
=
bash
]
git checkout master
git merge new
-
branche
-
2000
git log
git show
8
fa
8008
b
2
c
7
eeb
6
e
55115
f
019
b
6
e
7
ca
3
e
439
a
4
dd
\end
{
lstlisting
}
\subsection
*
{
\#
4
}
\begin
{
lstlisting
}
[
language
=
bash
]
git checkout
-
b forward
-
new
-
port
\end
{
lstlisting
}
\begin
{
lstlisting
}
[
language
=
bash
]
nvim Vagrantfile
git add Vagrantfile
git commit
-
m "Forward port
80
"
\end
{
lstlisting
}
\begin
{
lstlisting
}
[
language
=
bash
]
git checkout master
nvim Vagrantfile
git add Vagrantfile
git commit
-
m "Forward port
80
"
\end
{
lstlisting
}
\begin
{
lstlisting
}
[
language
=
bash
]
git merge forward
-
new
-
port
\end
{
lstlisting
}
Git demande de corriger le conflit.
\end
{
document
}
\end
{
document
}
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