Information Technology Reference
In-Depth Information
$ git snapshot
$ git l
Every time you want to save the current state of your working directory as a revi-
sion use this command:
$ git snapshot
If you want to set comments for revisions use the parameters:
$ git snapshot A short info explaining the purpose of the
revision
3-4. Mapping names
Problem
Suppose that during the first contact with git you configure it in such a way, that your
name is set to johny :
$ git config --global user.name johny
You work on your project for some time, and then you decide that you prefer to be
identified as John Doe . After another period, during which you commit heavily, you
change your mind again. This time you want to be called Paul "Moo" Cowboy .
Thus, your revisions are assigned to three different authors: johny , John Doe , and
Paul "Moo" Cowboy . You want to reconfigure your repository in such a way that
all these names are mapped to your real name. You can achieve this result by preparing
a .mailmap file.
Solution
Clone the repository from Recipe 3-3:
Search WWH ::




Custom Search