简体   繁体   中英

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.

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 ?

Thanks

Your folder has been transformed into a fully functional Git Repository. With a few commands you can publish your work on github.

First create a project on Bitbucket.org, you should get a link like this one: git@bitbucket.org:username/project.git

Now from a command line with the git executables, use the following commands:

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:

git push -u origin --all

This will push all branches to the bitbucket server.

Next time you want to update a branch, just use git push and the changes will be pushed

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. More information here: Detach (move) subdirectory into separate Git repository

For each of these repositories to earlier commands can be used to add them to bitbucket.org

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM