accountingrefa.blogg.se

Git checkout tag without clone
Git checkout tag without clone








git checkout tag without clone

It’ll overwrite the remote repository with your local references (and your local branches). Warningĭon’t use git push -mirror in repositories that weren’t cloned by -mirror as well. $ git push -mirror will get all the branches and tags that are available in the upstream repository and will replicate those into the new location. If you haven’t cloned the repository before, you can mirror it to a new home by $ git clone -mirror cd upstream-repository.git Mirroring a git repository without a local copy The difference lays on whether you already have a working copy of that repository or not. You’ll need to do this when migrating your upstream repository to a new “home”, like when switching services like GitHub.Īs with most tools, there’s a lot of ways to accomplish that, but I’ll be focusing on two of them. By state, we mean all the branches (including master) and all the tags as well. However, what we want with mirroring is to replicate the state of an origin repository (or upstream repository). When people talk about mirroring a git repository, usually we have a simple answer in mind:

git checkout tag without clone

GIT CHECKOUT TAG WITHOUT CLONE HOW TO

How to properly mirror a git repository May 21, 2013










Git checkout tag without clone