forked from progit/progit2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,3 +205,16 @@ To [email protected]:schacon/simplegit.git | |
---- | ||
|
||
Now, when someone else clones or pulls from your repository, they will get all your tags as well. | ||
|
||
==== Checking out Tags | ||
|
||
You can't really check out a tag in Git, since they can't be moved around. | ||
If you want to put a version of your repository in your working directory that looks like a specific tag, you can create a new branch at a specific tag: | ||
|
||
[source,console] | ||
---- | ||
$ git checkout -b version2 v2.0.0 | ||
Switched to a new branch 'version2' | ||
---- | ||
|
||
Of course if you do this and do a commit, your `version2` branch will be slightly different than your `v2.0.0` tag since it will move forward with your new changes, so do be careful. |