GitHub - version co...
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

[Closed] GitHub - version control - duplicating a tag

1 Posts
1 Users
0 Reactions
55 Views
Posts: 2657
Full Member
Topic starter
 

I'm a bit new to Git & can not suss how to do this.

I have an existing repo on Github:
say https://github.com/foo-bar/oldone.git

This repo has a tag MY_FIRST_TAG plus other tags & branches

I want to check out this tag MY_FIRST_TAG on to my local PC in a new repository say https://github.com/foo-bar/newone.git

But I do not want any of the other tags & branches.

Any ideas please ?


 
Posted : 19/06/2014 2:37 pm
Posts: 2657
Full Member
Topic starter
 

as is always the case.

you look for ages
ask the question & then suss it out

git - cloning
# copy branch to NEW_REP
git push https://github.com/foo-bar/NEW_REP.git +BRANCH_NAME:master
# checkout the NEW_REP
git clone https://github.com/foo-bar/NEW_REP.git


 
Posted : 19/06/2014 3:14 pm