From 6b34dccbe60f37b84fb202deba6f53ef04679c2a Mon Sep 17 00:00:00 2001 From: thoth <thoth@mailoo.org> Date: Sat, 9 Nov 2019 01:35:32 +0100 Subject: [PATCH] feat: add makefiles for svgs --- git.md | 44 ++++++++++++++++++++++++---- makefile | 9 ++++-- public/images/git/file_history.png | 3 ++ public/images/git/makefile | 13 ++++++++ public/images/git/psdrevisioning.jpg | 3 ++ public/images/makefile | 9 ++++++ 6 files changed, 72 insertions(+), 9 deletions(-) create mode 100644 public/images/git/file_history.png create mode 100644 public/images/git/makefile create mode 100644 public/images/git/psdrevisioning.jpg create mode 100644 public/images/makefile diff --git a/git.md b/git.md index 4f4f04c..626b9b6 100644 --- a/git.md +++ b/git.md @@ -10,13 +10,20 @@ date: 9 novembre 2019 { width=60% } +Qu'est-ce que j'était en train de faire ? + +Tout est cassé, comment revenir à une version fonctionelle ? ::: notes Fichier/projet modifié il y a longtemps ou par d'autres personnes, -ou on revient dessus et on ne sait pas ce qu'il s'est passe, -et ce qu'on était en train de faire +ou on revient dessus et on ne sait plus ce qu'il s'est passe, +ce qu'on était en train de faire + +Le versionning peut nous aider a savoir sur quoi on était en train de travailler + +Le versionning va surtout nous permettre de revenir à des versions fonctionnelles +(exemple : cas du projet où l'on rajoute une ligne qui casse tout) -Et hop, on passe deux heures à comprendre ce qui a été fait ::: --- @@ -29,17 +36,21 @@ Quand on travaille à plusieurs, mettre tout sur un dossier partagé n'est pas t ni pour comprendre ce que les autres ont modifié. Le versionnage va donc surtout être utilisé pour collaborer, et pouvoir partager des projets + ::: --- -{ width=60% } +{ width=60% } + +*Yash Bhardwaj* ::: notes Le versionnage manuel des fichiers, c'est possible, mais ce n'est pas très efficace -On va voir git, qui est le logiciel de versionnage le plus utilisé +On va voir un moyen de gérer le versionning plus facilement : git, +- le logiciel de versionnage le plus utilisé ::: @@ -50,7 +61,7 @@ On va voir git, qui est le logiciel de versionnage le plus utilisé ## Commits - + ::: notes @@ -470,6 +481,26 @@ Montre l'auteur de chaque ligne dans un fichier Permet de savoir qui a introduit une feature, ou une erreur :derp: ::: +--- + +## Marquer + +```bash +git tag v1.1.0 +git tag poulet + +git checkout v1.0.0 +git checkout poulet +``` + +::: notes +pour marquer des versions, ou des commit particuliers, que l'on souhaite retrouver, +on va leur attribuer des tags + +On peut ensuite y revenir en utilisant la commande checkout +::: + +--- # TL;DR @@ -486,4 +517,5 @@ git checkout <branch> # changer de branche git checkout -b <branch> # créer une branche et aller dessus git merge <branch> # fusionner des branches git blame <fichier> # regarder qui a ajouté une ligne +git tag <tagname> # marquer un commit pour y revenir facilement ``` diff --git a/makefile b/makefile index 62820f9..5a06316 100644 --- a/makefile +++ b/makefile @@ -3,9 +3,9 @@ src=$(wildcard *.md) html=$(join public/, $(src:.md=.html)) theme=solarized -all: ${html} +all: ${html} images -public/%.html: %.md public/reveal.js-${version} +public/%.html: %.md public/reveal.js-${version} images pandoc -t revealjs -s -o $@ $< -V revealjs-url=./reveal.js-${version} -V theme=${theme} public/reveal.js-${version}: ${version}.tar.gz @@ -14,7 +14,10 @@ public/reveal.js-${version}: ${version}.tar.gz ${version}.tar.gz: wget https://github.com/hakimel/reveal.js/archive/${version}.tar.gz -.PHONY: clean proper +.PHONY: clean proper images + +images: + $(MAKE) -C ./public/images proper: @rm -f public/*.html diff --git a/public/images/git/file_history.png b/public/images/git/file_history.png new file mode 100644 index 0000000..f888787 --- /dev/null +++ b/public/images/git/file_history.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b40dfb61c3f8ea957e4ddfd1e034227968fd37876f5669ea36361e5528718107 +size 17567 diff --git a/public/images/git/makefile b/public/images/git/makefile new file mode 100644 index 0000000..58b1f4b --- /dev/null +++ b/public/images/git/makefile @@ -0,0 +1,13 @@ +SOURCES= $(wildcard *.svg) +TARGETS= $(SOURCES:.svg=.png) + +all: ${TARGETS} + +%.png: %.svg + inkscape --export-area-drawing --export-png=$@ $^ + +.PHONY: clean + +clean: + rm -rf ${TARGETS} + diff --git a/public/images/git/psdrevisioning.jpg b/public/images/git/psdrevisioning.jpg new file mode 100644 index 0000000..a6d4d9f --- /dev/null +++ b/public/images/git/psdrevisioning.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04128f20d15cc12305e3a3e1c0a22eeb9bf49033077f4cec0389231829cf9374 +size 32530 diff --git a/public/images/makefile b/public/images/makefile new file mode 100644 index 0000000..f4fc2df --- /dev/null +++ b/public/images/makefile @@ -0,0 +1,9 @@ +all: git + +git: + $(MAKE) -c git + +.PHONY: clean + +clean: + $(MAKE) -c git clean -- GitLab