\begin{frame}[fragile] \frametitle{Premier pas} \framesubtitle{Dépôt vide} Au démarrage, est un dépôt vide : \begin{minted}[fontsize=\tiny]{bash} Sur la branche master Validation initiale rien à valider (créez/copiez des fichiers et utilisez "git add" pour les suivre) \end{minted} \end{frame} \begin{frame}[fragile] \frametitle{Premier pas} \framesubtitle{Et pourtant…} \begin{columns} \begin{column}{0.5\textwidth} L'initialisation consiste en la création du dossier .git : \end{column} \begin{column}{0.5\textwidth} \begin{minted}[fontsize=\tiny]{bash} . └── .git ├── branches ├── config ├── description ├── HEAD ├── hooks │   ├── applypatch-msg.sample │   ├── commit-msg.sample │   ├── post-update.sample │   ├── pre-applypatch.sample │   ├── pre-commit.sample │   ├── prepare-commit-msg.sample │   ├── pre-push.sample │   ├── pre-rebase.sample │   └── update.sample ├── info │   └── exclude ├── objects │   ├── info │   └── pack └── refs ├── heads └── tags \end{minted} \end{column} \end{columns} \end{frame} \begin{frame} \frametitle{Premier pas} \framesubtitle{Création d'un dossier} \commande{mkdir doc} \end{frame} \begin{frame}[fragile] \frametitle{Premier pas} \framesubtitle{Création d'un dossier} \commande{git status} \begin{minted}[fontsize=\tiny]{bash} Sur la branche master Validation initiale rien à valider (créez/copiez des fichiers et utilisez "git add" pour les suivre) \end{minted} \begin{exampleblock}{} git ne prend en considération que le contenu des fichiers. \end{exampleblock} \end{frame} \begin{frame} \frametitle{Premier pas} \framesubtitle{Création d'un fichier} \commande{touch doc/README} \end{frame} \begin{frame}[fragile] \frametitle{Premier pas} \framesubtitle{Création d'un fichier} \commande{git status} \begin{minted}[fontsize=\tiny]{bash} Sur la branche master Validation initiale Fichiers non suivis: (utilisez "git add ..." pour inclure dans ce qui sera validé) doc/ aucune modification ajoutée à la validation mais des fichiers non suivis sont présents (utilisez "git add" pour les suivre) \end{minted} \end{frame} \begin{frame} \frametitle{Premier pas} \framesubtitle{Création d'un fichier} \commande{git add .} \skbinput[from=fig]{apps/git_commande_add} \end{frame} \begin{frame}[fragile] \frametitle{Premier pas} \framesubtitle{Création d'un fichier} \commande{git status} \begin{minted}[fontsize=\tiny]{bash} Sur la branche master Validation initiale Modifications qui seront validées : (utilisez "git rm --cached ..." pour désindexer) nouveau fichier : doc/README \end{minted} \end{frame} \begin{frame} \frametitle{Premier pas} \framesubtitle{Création d'un fichier} \commande{git commit -m "Ajout du premier fichier."} \skbinput[from=fig]{apps/git_commande_commit} \end{frame} \begin{frame}[fragile] \frametitle{Premier pas} \framesubtitle{Création d'un fichier} \commande{git status} \begin{minted}[fontsize=\tiny]{bash} Sur la branche master rien à valider, la copie de travail est propre \end{minted} \end{frame}