From 2d9de822b71abd8d03db7218e6e2756583953263 Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Fri, 3 May 2024 11:48:19 +0100 Subject: [PATCH] add diagrams and tagging info --- commit.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/commit.md b/commit.md index fe0df46..b5f330b 100644 --- a/commit.md +++ b/commit.md @@ -112,6 +112,39 @@ If you have no merge conflicts all will be good and the code will now appear in > If you do have a **merge conflict** we'll deal with this in the [merging](./merging.md) file. +If you want to visualise this on your git diagram what you've done is effectively this: + +```marmaid +gitGraph + commit id: "first commit" + commit id: "updates" +``` + +### Tagging + +Now you have a release lets look at how you tag that commit as a particular version. Here we turn your current version into a **v1.0** tag. + +```bash +git tag -a v1.0 -m "my version 1.0" +``` + +This is effectively what happens in your git branch. + +```marmaid +gitGraph + commit id: "first commit" + commit id: "updates" tag: "v1.0" +``` + +To list your tags you can run: + +```bash +# list all tags +git tag + +# To filter tags to a certain string +git tag -l "v1.*" +``` --- ##### Follow me for more guides