Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git-jso
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
DOSCH Philippe
git-jso
Commits
948089cf
Commit
948089cf
authored
11 years ago
by
Philippe Dosch
Browse files
Options
Downloads
Patches
Plain Diff
Insert boxes that wrappes parts of code in main part of git
parent
5822bc74
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
basegit.tex
+5
-3
5 additions, 3 deletions
basegit.tex
gitstatus.txt
+1
-1
1 addition, 1 deletion
gitstatus.txt
maincommands.tex
+27
-14
27 additions, 14 deletions
maincommands.tex
with
33 additions
and
18 deletions
basegit.tex
+
5
−
3
View file @
948089cf
...
...
@@ -180,9 +180,11 @@
très bonne répartition des hashs (signatures) produits
\end{itemize}
\item
Exemples
\\
\mygit
{
echo salut | sha1sum
}{
salut.sha1
}
\mygit
{
echo Salut | sha1sum
}{
Salut.sha1
}
Exemples
\begin{codebox}
\mygit
{
echo salut | sha1sum
}{
salut.sha1
}
\mygit
{
echo Salut | sha1sum
}{
Salut.sha1
}
\end{codebox}
\end{itemize}
}
...
...
This diff is collapsed.
Click to expand it.
gitstatus.txt
+
1
−
1
View file @
948089cf
...
...
@@ -2,7 +2,7 @@
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working dir
ectory
)
# (use "git checkout -- <file>..." to discard changes in working dir)
#
# modified: README
#
...
...
This diff is collapsed.
Click to expand it.
maincommands.tex
+
27
−
14
View file @
948089cf
...
...
@@ -27,8 +27,9 @@
Penser à ajouter un fichier
\ex
{
README
}
décrivant succinctement le
projet
\end{itemize}
\mygit
{
git init
}{
gitinit.txt
}
\begin{codebox}
\mygit
{
git init
}{
gitinit.txt
}
\end{codebox}
}
%======================================================================
...
...
@@ -45,8 +46,9 @@
Permet ensuite la communication entre les deux dépôts, typiquement
par le biais des commandes
\ex
{
git push
}
et
\ex
{
git pull
}
\end{itemize}
\mygit
{
git clone git@github.com:dosch/test.git
}{
gitclone.txt
}
\begin{codebox}
\mygit
{
git clone git@github.com:dosch/test.git
}{
gitclone.txt
}
\end{codebox}
}
%======================================================================
...
...
@@ -120,9 +122,10 @@
de commande
\end{itemize}
\end{itemize}
\mygitplus
{
git add README
}
\\
\mygit
{
git commit -m "New feature described"
}{
gitcommit.txt
}
\begin{codebox}
\mygitplus
{
git add README
}
\\
\mygit
{
git commit -m "New feature described"
}{
gitcommit.txt
}
\end{codebox}
}
%======================================================================
...
...
@@ -234,7 +237,9 @@
\frame
{
\frametitle
{
\ext
{
git log
}}
\framesubtitle
{
\gitinter
}
\mygit
{
git log
}{
gitlog.txt
}
\begin{codebox}
\mygit
{
git log
}{
gitlog.txt
}
\end{codebox}
}
%======================================================================
...
...
@@ -264,7 +269,9 @@
\frame
{
\frametitle
{
\ext
{
git show
}}
\framesubtitle
{
\gitinter
}
\mygit
{
git show
}{
gitshow.txt
}
\begin{codebox}
\mygit
{
git show
}{
gitshow.txt
}
\end{codebox}
}
%======================================================================
...
...
@@ -288,7 +295,9 @@
\frame
{
\frametitle
{
\ext
{
git status
}}
\framesubtitle
{
\gitinter
}
\mygit
{
git status
}{
gitstatus.txt
}
\begin{codebox}
\mygit
{
git status
}{
gitstatus.txt
}
\end{codebox}
}
%======================================================================
...
...
@@ -316,7 +325,9 @@
\frame
{
\frametitle
{
\ext
{
git diff
}}
\framesubtitle
{
\gitinter
}
\mygitti
{
git diff
}{
gitdiff.txt
}
\begin{codebox}
\mygitti
{
git diff
}{
gitdiff.txt
}
\end{codebox}
}
%======================================================================
...
...
@@ -359,8 +370,8 @@
irrévocables...
\item
\textbf
{
Il est souvent plus approprié de faire un nouveau
\emph
{
commit
}
annulant le
\emph
{
commit
}
concerné (voir
\ex
{
git
revert
}
)
}
\emph
{
commit
}
annulant le
\emph
{
commit
}
concerné
}
(voir
\ex
{
git
revert
}
)
\item
Un exemple utile toutefois pour rétablir l'état du répertoire de
travail au dernier
\emph
{
commit
}
effectué (et supprimer ainsi
...
...
@@ -464,7 +475,9 @@
\end{itemize}
\end{itemize}
\mygit
{
git push
}{
gitpush.txt
}
\begin{codebox}
\mygit
{
git push
}{
gitpush.txt
}
\end{codebox}
}
%======================================================================
...
...
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