Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Picasoft
APIs
Init
Git
Commits
8cd0a97f
Unverified
Commit
8cd0a97f
authored
Jan 11, 2019
by
Rémy Huet
💻
Browse files
git commit --amend
parent
27685690
Pipeline
#33301
passed with stage
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/tex/utiliser_versions/annuler_commits.tex
View file @
8cd0a97f
...
...
@@ -154,7 +154,53 @@ $ git log --graph --decorate --all \Pause
\begin
{
beamercolorbox
}
[
rounded
=
true, shadow
=
true
]
{
terminal
}
\begin
{
Verbatim
}
//
TODO
$
echo "Je suis l'apiinit" >> API.txt
&&
git commit -am "Commit supplémentaire"
\Pause
$
sed
-
i "s|apiinit|Api
/
casoft init|" API.txt
\Pause
$
git commit -a --amend
\Pause
[master 168efba] Commit supplémentaire
Date: Fri Jan 11 14:53:09 2019 +0100
1 file changed, 1 insertion(+)
\end{Verbatim}
\end{beamercolorbox}
\end{frame}
\begin{frame}
[fragile]
\begin{beamercolorbox}
[rounded=true, shadow=true]
{
terminal
}
\begin{Verbatim}
$
git log
--
graph
--
decorate
\Pause
*
\textcolor
{
yellow
}{
commit
168
efba
77
dcfd
59
ba
4346
fe
4
a
34427
b
71
db
75
da
7
(
}{
\bf\textcolor
{
cyan
}{
HEAD
-
>
}
\textcolor
{
green
}{
master
}}
\textcolor
{
yellow
}{
)
}
\textcolor
{
red
}{
|
}
Author: huetremy <remy.huet@etu.utc.fr>
\textcolor
{
red
}{
|
}
Date: Fri Jan
11
14
:
53
:
09
2019
+
0100
\textcolor
{
red
}{
|
}
\textcolor
{
red
}{
|
}
Commit supplémentaire
\textcolor
{
red
}{
|
}
*
\textcolor
{
yellow
}{
commit a
04
da
653083
b
6
b
0
ba
3
eea
2
bce
98
d
903
acfd
0
a
4
d
3
}
\textcolor
{
red
}{
|
}
Author: huetremy <remy.huet@etu.utc.fr>
\textcolor
{
red
}{
|
}
Date: Fri Jan
11
10
:
16
:
10
2019
+
0100
\textcolor
{
red
}{
|
}
\textcolor
{
red
}{
|
}
Troisième commit
\textcolor
{
red
}{
|
}
[
\ldots
]
\Pause
$
git show HEAD
\Pause
\textcolor
{
yellow
}{
commit 168efba77dcfd59ba4346fe4a34427b71db75da7 (
}{
\bf\textcolor
{
cyan
}{
HEAD ->
}
\textcolor
{
green
}{
master
}}
\textcolor
{
yellow
}{
)
}
Author: huetremy <remy.huet@etu.utc.fr>
Date: Fri Jan 11 14:53:09 2019 +0100
Commit supplémentaire
{
\bf
{}
diff --git a/API.txt b/API.txt
}
{
\bf
{}
index a03f78c..4af702a 100644
}
{
\bf
{}
--- a/API.txt
}
{
\bf
{}
+++ b/API.txt
}
\textcolor
{
cyan
}{
@@ -1,3 +1,4 @@
}
Je suis le premier fichier utilisé pour cette API sur git
J'ajoute une ligne à mon fichier
Encore une ligne en plus !
\textcolor
{
myGreen
}{
+Je suis l'Api/casoft init
}
\end{Verbatim}
\end{beamercolorbox}
\end{frame}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment