Skip to content

Commit

Permalink
Merge pull request #1 from AnnaZango/BranchTest
Browse files Browse the repository at this point in the history
Test comment
  • Loading branch information
AnnaZango authored Mar 23, 2023
2 parents 0bbdccd + 1a0fb36 commit ebe38fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-basics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ 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!

0 comments on commit ebe38fa

Please sign in to comment.