commit
e527b3f7cf
7 changed files with 545 additions and 0 deletions
@ -0,0 +1,260 @@ |
|||
|
|||
# Created by https://www.gitignore.io/api/latex |
|||
|
|||
### LaTeX ### |
|||
## Core latex/pdflatex auxiliary files: |
|||
*.aux |
|||
*.lof |
|||
*.log |
|||
*.lot |
|||
*.fls |
|||
*.out |
|||
*.toc |
|||
*.fmt |
|||
*.fot |
|||
*.cb |
|||
*.cb2 |
|||
.*.lb |
|||
|
|||
## Intermediate documents: |
|||
*.dvi |
|||
*.xdv |
|||
*-converted-to.* |
|||
# these rules might exclude image files for figures etc. |
|||
# *.ps |
|||
# *.eps |
|||
# *.pdf |
|||
|
|||
## Generated if empty string is given at "Please type another file name for output:" |
|||
.pdf |
|||
|
|||
## Bibliography auxiliary files (bibtex/biblatex/biber): |
|||
*.bbl |
|||
*.bcf |
|||
*.blg |
|||
*-blx.aux |
|||
*-blx.bib |
|||
*.run.xml |
|||
|
|||
## Build tool auxiliary files: |
|||
*.fdb_latexmk |
|||
*.synctex |
|||
*.synctex(busy) |
|||
*.synctex.gz |
|||
*.synctex.gz(busy) |
|||
*.pdfsync |
|||
|
|||
## Build tool directories for auxiliary files |
|||
# latexrun |
|||
latex.out/ |
|||
|
|||
## Auxiliary and intermediate files from other packages: |
|||
# algorithms |
|||
*.alg |
|||
*.loa |
|||
|
|||
# achemso |
|||
acs-*.bib |
|||
|
|||
# amsthm |
|||
*.thm |
|||
|
|||
# beamer |
|||
*.nav |
|||
*.pre |
|||
*.snm |
|||
*.vrb |
|||
|
|||
# changes |
|||
*.soc |
|||
|
|||
# cprotect |
|||
*.cpt |
|||
|
|||
# elsarticle (documentclass of Elsevier journals) |
|||
*.spl |
|||
|
|||
# endnotes |
|||
*.ent |
|||
|
|||
# fixme |
|||
*.lox |
|||
|
|||
# feynmf/feynmp |
|||
*.mf |
|||
*.mp |
|||
*.t[1-9] |
|||
*.t[1-9][0-9] |
|||
*.tfm |
|||
|
|||
#(r)(e)ledmac/(r)(e)ledpar |
|||
*.end |
|||
*.?end |
|||
*.[1-9] |
|||
*.[1-9][0-9] |
|||
*.[1-9][0-9][0-9] |
|||
*.[1-9]R |
|||
*.[1-9][0-9]R |
|||
*.[1-9][0-9][0-9]R |
|||
*.eledsec[1-9] |
|||
*.eledsec[1-9]R |
|||
*.eledsec[1-9][0-9] |
|||
*.eledsec[1-9][0-9]R |
|||
*.eledsec[1-9][0-9][0-9] |
|||
*.eledsec[1-9][0-9][0-9]R |
|||
|
|||
# glossaries |
|||
*.acn |
|||
*.acr |
|||
*.glg |
|||
*.glo |
|||
*.gls |
|||
*.glsdefs |
|||
|
|||
# gnuplottex |
|||
*-gnuplottex-* |
|||
|
|||
# gregoriotex |
|||
*.gaux |
|||
*.gtex |
|||
|
|||
# htlatex |
|||
*.4ct |
|||
*.4tc |
|||
*.idv |
|||
*.lg |
|||
*.trc |
|||
*.xref |
|||
|
|||
# hyperref |
|||
*.brf |
|||
|
|||
# knitr |
|||
*-concordance.tex |
|||
# TODO Comment the next line if you want to keep your tikz graphics files |
|||
*.tikz |
|||
*-tikzDictionary |
|||
|
|||
# listings |
|||
*.lol |
|||
|
|||
# makeidx |
|||
*.idx |
|||
*.ilg |
|||
*.ind |
|||
*.ist |
|||
|
|||
# minitoc |
|||
*.maf |
|||
*.mlf |
|||
*.mlt |
|||
*.mtc[0-9]* |
|||
*.slf[0-9]* |
|||
*.slt[0-9]* |
|||
*.stc[0-9]* |
|||
|
|||
# minted |
|||
_minted* |
|||
*.pyg |
|||
|
|||
# morewrites |
|||
*.mw |
|||
|
|||
# nomencl |
|||
*.nlg |
|||
*.nlo |
|||
*.nls |
|||
|
|||
# pax |
|||
*.pax |
|||
|
|||
# pdfpcnotes |
|||
*.pdfpc |
|||
|
|||
# sagetex |
|||
*.sagetex.sage |
|||
*.sagetex.py |
|||
*.sagetex.scmd |
|||
|
|||
# scrwfile |
|||
*.wrt |
|||
|
|||
# sympy |
|||
*.sout |
|||
*.sympy |
|||
sympy-plots-for-*.tex/ |
|||
|
|||
# pdfcomment |
|||
*.upa |
|||
*.upb |
|||
|
|||
# pythontex |
|||
*.pytxcode |
|||
pythontex-files-*/ |
|||
|
|||
# tcolorbox |
|||
*.listing |
|||
|
|||
# thmtools |
|||
*.loe |
|||
|
|||
# TikZ & PGF |
|||
*.dpth |
|||
*.md5 |
|||
*.auxlock |
|||
|
|||
# todonotes |
|||
*.tdo |
|||
|
|||
# easy-todo |
|||
*.lod |
|||
|
|||
# xmpincl |
|||
*.xmpi |
|||
|
|||
# xindy |
|||
*.xdy |
|||
|
|||
# xypic precompiled matrices |
|||
*.xyc |
|||
|
|||
# endfloat |
|||
*.ttt |
|||
*.fff |
|||
|
|||
# Latexian |
|||
TSWLatexianTemp* |
|||
|
|||
## Editors: |
|||
# WinEdt |
|||
*.bak |
|||
*.sav |
|||
|
|||
# Texpad |
|||
.texpadtmp |
|||
|
|||
# LyX |
|||
*.lyx~ |
|||
|
|||
# Kile |
|||
*.backup |
|||
|
|||
# KBibTeX |
|||
*~[0-9]* |
|||
|
|||
# auto folder when using emacs and auctex |
|||
./auto/* |
|||
*.el |
|||
|
|||
# expex forward references with \gathertags |
|||
*-tags.tex |
|||
|
|||
# standalone packages |
|||
*.sta |
|||
|
|||
### LaTeX Patch ### |
|||
# glossaries |
|||
*.glstex |
|||
|
|||
|
|||
# End of https://www.gitignore.io/api/latex |
|||
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
@ -0,0 +1,6 @@ |
|||
def say(sentence): |
|||
print("I'm told to say :", end="") |
|||
print(sentence) |
|||
|
|||
if __name__=='__main__': |
|||
say("Hello !") |
|||
@ -0,0 +1,135 @@ |
|||
\documentclass{beamer} |
|||
\usetheme{metropolis} % Use metropolis theme |
|||
\usepackage{minted} |
|||
\title{Formation Git} |
|||
\date{\today} |
|||
\author{Klafyvel} |
|||
\institute{Rézo Metz} |
|||
\begin{document} |
|||
\maketitle |
|||
\section{Git : la babibase} |
|||
\begin{frame}{Pourquoi ?} |
|||
\begin{itemize} |
|||
\item Partager le même code ; |
|||
\item Travailler sur une copie indépendante sans impacter le travail |
|||
des autres ; |
|||
\item Propager ses modifications ou importer celles de ses |
|||
collègues ; |
|||
\item Revenir sur une version antérieure du code ; |
|||
\item Faire évoluer simultanément l’application dans des directions |
|||
différentes ; |
|||
\item S’appuyer sur un système de sauvegarde du code. |
|||
\end{itemize} |
|||
\end{frame} |
|||
|
|||
\begin{frame}[fragile]{Installation} |
|||
Sous Linux : |
|||
\begin{minted}{bash} |
|||
sudo apt install git |
|||
\end{minted} |
|||
Sous Windows : |
|||
https://gitforwindows.org/ |
|||
\end{frame} |
|||
|
|||
\begin{frame}[fragile]{Configuration de git} |
|||
\begin{minted}{bash} |
|||
git config --global --edit |
|||
\end{minted} |
|||
\end{frame} |
|||
|
|||
\begin{frame}[fragile]{Créons un projet} |
|||
\begin{minted}{bash} |
|||
git init |
|||
\end{minted} |
|||
Ou si vous récupérez le projet de quelqu'un d'autre |
|||
\begin{minted}{bash} |
|||
git clone <url> |
|||
\end{minted} |
|||
\end{frame} |
|||
|
|||
\begin{frame}[fragile]{Principe général} |
|||
\begin{itemize} |
|||
\item<1-> Une modification = Un 'commit' |
|||
\item<2-> Prendre le code ici : https://bit.ly/2zpTX0u ou le recopier dans le fichier 'code.py': |
|||
\begin{minted}{python} |
|||
def say(sentence): |
|||
print("I'm told to say :", end="") |
|||
print(sentence) |
|||
|
|||
if __name__=='__main__': |
|||
say("Hello !") |
|||
\end{minted} |
|||
\item<3-> Ajouter le fichier |
|||
\begin{minted}{bash} |
|||
git add fichier |
|||
\end{minted} |
|||
\end{itemize} |
|||
\end{frame} |
|||
\begin{frame}[fragile]{Principe général} |
|||
\begin{itemize} |
|||
\item<1-> Voir l'état de notre projet |
|||
\begin{minted}{bash} |
|||
git status |
|||
\end{minted} |
|||
\item<2-> Voir nos modifications |
|||
\begin{minted}{bash} |
|||
git diff [<fichier>] |
|||
\end{minted} |
|||
\item<3-> Commiter |
|||
\begin{minted}{bash} |
|||
git commit fichier |
|||
\end{minted} |
|||
\end{itemize} |
|||
\end{frame} |
|||
\begin{frame}{Que sait-on faire ?} |
|||
|
|||
Avoir un historique de nos modifications. |
|||
\begin{figure} |
|||
\centering |
|||
\includegraphics[width=0.7\linewidth]{commit} |
|||
\caption{} |
|||
\label{fig:commit} |
|||
\end{figure} |
|||
\end{frame} |
|||
|
|||
\section{Gitlab} |
|||
|
|||
\begin{frame}{Le Gitlab du Rézo} |
|||
Connectez-vous ici : https://gitlab.rezometz.org/ |
|||
\end{frame} |
|||
\begin{frame}{Le Gitlab du Rézo} |
|||
\begin{figure} |
|||
\centering |
|||
\includegraphics[width=\linewidth]{gitlab} |
|||
\caption{le GitLab du Rézo} |
|||
\label{fig:gitlab} |
|||
\end{figure} |
|||
\end{frame} |
|||
|
|||
\begin{frame}[fragile]{Le Gitlab du Rézo} |
|||
\begin{itemize} |
|||
\item<1-> Créez un nouveau projet |
|||
\item<2-> Récupérez l'URL de clonage |
|||
\begin{figure} |
|||
\centering |
|||
\includegraphics[width=0.7\linewidth]{url_gitlab} |
|||
\caption{URL de clonage} |
|||
\label{fig:urlgitlab} |
|||
\end{figure} |
|||
\item<3-> Enregistrez cet URL comme étant l'origine de votre projet |
|||
\begin{minted}{bash} |
|||
git remote add origin <url> |
|||
\end{minted} |
|||
\item<4-> Envoyez vos modifications |
|||
\begin{minted}{bash} |
|||
git push |
|||
\end{minted} |
|||
\item<5-> Récupérer les modifications distantes |
|||
\begin{minted}{bash} |
|||
git pull |
|||
\end{minted} |
|||
|
|||
\end{itemize} |
|||
\end{frame} |
|||
|
|||
\end{document} |
|||
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
Loading…
Reference in new issue