A
A
Alexander Zarochintsev2014-03-19 12:03:56
git
Alexander Zarochintsev, 2014-03-19 12:03:56

GitHub.com - how to pull Releases/Tags without losing commit history?

Good time of the day! In general, I have a problem, there are 2 versions of the project on GitHub , the first version of the application supports iOS 6, the second only iOS 7. On the 6th version, it was already the case, they scored a little, and did not support it, in the master branch - the version of the application is already only from 7th. The old version has been uploaded to GitHub as Releases/Tags .
Actually, the question is: how can Releases / Tags be pulled from GitHub so that the commits remain?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2014-03-19
@Kovalskiy

Releases/Tags are just tags. If you want to pull tags (and the history leading to them) from a remote repository to a local one, you can do it like this:

git remote add remote_tags <url>
git fetch --tags remote_tags
git remote del remote_tags

Local commits, of course, will remain, but the tags may not match them if, for example, the history was rewritten, or these are two completely different repositories.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question