[英]How to import the result of a cvs2git migration into bitbucket
I just finished successfully (I hope) the process of migrating my CVS repository to GIT. 我刚刚成功完成了(我希望)将CVS存储库迁移到GIT的过程。
Now I have a folder within there are files but I'm annoyed and a little bit stuck with it ! 现在我有一个文件夹,里面有文件,但是我很烦,有点卡住了!
What I want to know now is what should I do to import the resulted repo (a lot of projects) to my bitbucket account and start using it instead of CVS ? 我现在想知道的是,应该怎么做才能将生成的回购协议(很多项目)导入我的bitbucket帐户并开始使用它而不是CVS?
Thanks 谢谢
Your folder has been transformed into a fully functional Git Repository. 您的文件夹已转换为功能完备的Git存储库。 With a few commands you can publish your work on github.
使用一些命令,您可以在github上发布您的作品。
First create a project on Bitbucket.org, you should get a link like this one: git@bitbucket.org:username/project.git 首先在Bitbucket.org上创建一个项目,您应该获得如下链接:git@bitbucket.org:username / project.git
Now from a command line with the git executables, use the following commands: 现在从带有git可执行文件的命令行中,使用以下命令:
git remote add origin git@bitbucket.org:username/project.git
Which adds the location to the remote repository. 它将位置添加到远程存储库。
Then publish your work to bitbucket using the following command: 然后使用以下命令将您的工作发布到bitbucket:
git push -u origin --all
This will push all branches to the bitbucket server. 这会将所有分支推送到bitbucket服务器。
Next time you want to update a branch, just use git push and the changes will be pushed 下次您要更新分支时,只需使用git push,更改将被推送
Update: If the imported repository contains multiple projects, you might want to split off the projects into it's own repositories. 更新:如果导入的存储库包含多个项目,则可能需要将项目拆分为自己的存储库。 To accomplish this the subtree command can be used.
为此,可以使用subtree命令。 More information here: Detach (move) subdirectory into separate Git repository
此处的更多信息: 将子目录分离(移动)到单独的Git存储库中
For each of these repositories to earlier commands can be used to add them to bitbucket.org 对于这些存储库中的每个,可以使用较早的命令将它们添加到bitbucket.org
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.