GitHub - version co...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] GitHub - version control - duplicating a tag

1 Posts
1 Users
0 Reactions
47 Views
Posts: 2616
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: 2616
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

6 DAYS LEFT
We are currently at 95% of our target!