Information Technology Reference
In-Depth Information
is equivalent to:
$ git create-file yes
$ git snapshot yes
$ git create-file no
$ git snapshot no
The call:
$ git simple-commit lorem ipsum dolor
creates the repository shown in Figure 3-9 .
Hint All the aliases defined in Recipes 2-10, 3-2, and 3-7 are useful in your daily
work with git. The aliases defined in Recipe 3-11 are useful only when learning and
practicing git.
3-12. Loosing commits
Problem
You want to verify that the revisions not accessible through symbolic references can be
lost. You can do it following this procedure:
• Commit the changes.
• Reset the history with $ git reset -hard [REVISION] . Some
commits will be no longer returned by $ git log command. They
remain unchanged in the database. You can access them using reflog or
SHA-1 names.
• Once you clear the reflog, the revisions that are not printed by $ git
log become unreachable. It means that they are still in the database but
you can access them only if you know their SHA-1 names.
Search WWH ::




Custom Search