![]() ![]() ![]() Setting the URL for pushes simplifies pushing to your mirror. $ cd REPOSITORY-TO-MIRRORĪs with a bare clone, a mirrored clone includes all remote branches and tags, but all local references will be overwritten each time you fetch, so it will always be the same as the original repository. If you want to mirror a repository in another location, including getting updates from the original, you can clone a mirror and periodically push the changes.Ĭreate a bare mirrored clone of the repository. Mirroring a repository in another location Push the repository's Git Large File Storage objects to your mirror.Pull in the repository's Git Large File Storage objects.Navigate to the repository you just cloned.Replace the example username with the name of the person or organization who owns the repository, and replace the example repository name with the name of the repository you'd like to duplicate. ![]() Create a bare clone of the repository.Mirroring a repository that contains Git Large File Storage objects Remove the temporary local repository you created earlier.In these examples, exampleuser/new-repository or exampleuser/mirrored are the mirrors. For more information, see " About GitHub Importer."īefore you can push the original repository to your new copy, or mirror, of the repository, you must create the new repository on. Note: If you have a project hosted on another version control system, you can automatically import your project to GitHub using the GitHub Importer tool. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |