0

i have local repository, which has two version:

$git tag
v1.0.0
v1.0.4

in v.0.0 is only initial reposity, with two files:

aa.txt - content:

it's my first file

bb.txt - content: it's my second file

$git commit -m 'first commit'
$git push
(...)

next time i added new file, names: cc.txt, which has content:

it's file for next version

$git commit -m 'next commit'
$git push
(...)

now i want to get pull, but not latest version, only version: v1.0.0

what's way?

Marek Woźniak
  • 1,766
  • 16
  • 34

2 Answers2

1

just use the tag name:

git checkout v1.0.0 

see the manual for checkout command

Isantipov
  • 19,491
  • 2
  • 26
  • 41
  • thanks, but it's not the answer to my question. Other situation: if first version has 1 mb, second vs has 2 GB, then by your way's to download whole project and select the first version? – Marek Woźniak Aug 18 '14 at 00:30
  • 1
    @W92 , well, no traffic is consumed when you do the checkout - you have to fetch/pull to get other people's commits. If you do the commits yourself or you've already done the fetch/pull, they are already on your hard drive. If you want to fetch to a specific revision only, then check out this answer: http://stackoverflow.com/a/3489576/1990682 – Isantipov Aug 18 '14 at 13:23
0

One way is on webside:

click the selected button: enter image description here

select tags, select your interested tag/version and the next step's to Download.zip

Marek Woźniak
  • 1,766
  • 16
  • 34