Information Technology Reference
In-Depth Information
can ignore the configuration files using either
.git/info/exclude
or your person-
al
.gitignore
file.
If you choose to ignore the configuration with the
.git/info/exclude
file you
will have to define the pattern
/nbproject/
in every new project.
If you choose to use your personal
.gitignore
file you can define the patterns
that will be used in all your projects.
13-11. Using tags
Problem
You want to use tags to label releases of your project.
Solution
Initialize a new repository:
$ cd git-recipes
$ mkdir 13-11
$ cd 13-11
$ git init
Create the history of your project with:
$ git simple-commit a b c d
Now you want to tag the current state of your project with
v1.2.3
. You can do
this with the following command:
$ git tag -a v1.2.3 -m "Release 1.2.3"
Create some more commits with:
$ git simple-commit e f g