Information Technology Reference
In-Depth Information
move any tags that were removed in the remote repository. To synchronize your tags
with remote tags use:
$ git fetch --tags
Using tags
Tags can be used just as any other identifiers of revisions. You can pass them to $ git
branch , $ git checkout , and $ git reset commands, such as:
$ git reset --hard v1.2.3
$ git checkout -b my-new-branch v1.2.3
Hint You can treat tags as branches that cannot move.
13-12. Exporting repositories to zipped
archives
Problem
You have worked on a project that has just reached a stable release. You want to gener-
ate a zipped archive containing all the files that are important to anyone who would
wish to use your project. You don't want to include the files that are important only to
the developers who worked on this project in the zipped archive.
Solution
Initialize a new repository:
$ cd git-recipes
$ mkdir 13-12
Search WWH ::




Custom Search