If you missed our introduction to tagging, you can revisit it here.
First, let’s set a few things up. Create a new directory named
tutorial and initialize a Git repository with the git init command.
$ mkdir tutorial $ cd tutorial $ git init Initialized empty Git repository in /Users/username/Desktop/tutorial/.git/
Next, create a new file named
myfile.txt in the
tutorial directory with the below content, and commit it.
Anyone can learn Git with this tutorial and Backlog $ git add myfile.txt $ git commit -m "first commit" [main (root-commit) a73ae49] first commit 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 myfile.txt
At this point, the history looks like this: