From 0bbdccd442dd01f826112485b4eefad511bb9df0 Mon Sep 17 00:00:00 2001 From: Anna Zango Palau Date: Thu, 23 Mar 2023 10:34:00 +0100 Subject: [PATCH] Add test --- git-basics.Rmd | 1 + 1 file changed, 1 insertion(+) diff --git a/git-basics.Rmd b/git-basics.Rmd index d67150c8..6950be1e 100644 --- a/git-basics.Rmd +++ b/git-basics.Rmd @@ -44,3 +44,4 @@ So, by looking at diffs, it's easy to see how two snapshots differ, but what abo Every time you make a commit you must also write a short __commit message__. Ideally, this conveys the motivation for the change. Remember, the diff will show the content. When you revisit a project after a break or need to digest recent changes made by a colleague, looking at the __history__, by reading commit messages and skimming through diffs, is an extremely efficient way to get up to speed. Figure \@ref(fig:commit-diff-sha-tag) shows the messages associated with the last three commits. Every commit needs some sort of nickname, so you can identify it. Git does this automatically, assigning each commit what is called a SHA, a seemingly random string of 40 letters and numbers (it is not, in fact, random but is a SHA-1 checksum hash of the commit). Though you will be exposed to these, you don't have to handle them directly very often and, when you do, usually the first 7 characters suffice. The commit messages in Figure \@ref(fig:commit-diff-sha-tag) are prefixed by such truncated SHAs. You can also designate certain snapshots as special with a __tag__, which is a name of your choosing. In a software project, it is typical to tag a release with its version, e.g., "v1.0.3". For a manuscript or analytical project, you might tag the version submitted to a journal or transmitted to external collaborators. Figure \@ref(fig:commit-diff-sha-tag) shows a tag, "draft-01", associated with the last commit. +Comment test!