Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从xpdev迁移到github?_Github - Fatal编程技术网

如何从xpdev迁移到github?

如何从xpdev迁移到github?,github,Github,我在xp dev中有一个存储库,我想将其移动到github。我没有xp开发经验,但我知道github。如何将该存储库迁移到github?最简单的方法是克隆您的xp dev repo,并将其远程推送到github: git clone --mirror <xp-dev-url> cd xpdevRepo git remote add github newGitHubRepoUrl git push -f --tags github refs/heads/*:refs/heads/*

我在xp dev中有一个存储库,我想将其移动到github。我没有xp开发经验,但我知道github。如何将该存储库迁移到github?

最简单的方法是克隆您的xp dev repo,并将其远程推送到github:

git clone --mirror <xp-dev-url>
cd xpdevRepo
git remote add github newGitHubRepoUrl
git push -f --tags github refs/heads/*:refs/heads/*
git克隆--镜像
cd xpdevRepo
git远程添加github newGitHubRepoUrl
git push-f--标记github refs/heads/*:refs/heads/*
假设您首先在GitHub上创建了一个空回购协议