Jump to content
Sign in to follow this  
spetitlucine

Importing a github repo

Recommended Posts

Hello,

i want to change from github to plasticscm some projects.

My first try was to use the gitsync option, the import works well i have the same workspace directory structure as the one with github, but it appears that i can't break the sync process after importing the project, and that some features cannot be used because of the sync with git that i don't want in fact (i never want to push things back to git, i just want to import the gihub repo and keep traces of all history).

So i tried to use git fast-export then cm fast-import but in this case, when opening the imported plasticscm repo i can find old directories that was deleted or renamed in my workspace.

Has someone some tips ?

My only need is to get my github repo in a plastic repo with all history but no old renamed/move/deleted folders or files, but i never want to push back to git but gitsync cannot be removed after syncing and some features cannot be done because of the sync i don't need.

Thanks by advance.

Stéphane

Edited: Seems like there's only old empty directories...

Share this post


Link to post
Share on other sites

Hi,

Quote

My first try was to use the gitsync option, the import works well i have the same workspace directory structure as the one with github, but it appears that i can't break the sync process after importing the project, and that some features cannot be used because of the sync with git that i don't want in fact (i never want to push things back to git, i just want to import the gihub repo and keep traces of all history)

You can use GitSync to migrate the repo. If you don't plan to sync the repo again in the future, you can revert this status by deleting the gitsync mappings for that repo and the Gitsync attribute created in it (check the attributes of the repo in Plastic GUI). 

The mappings path is:

C:\Users\xxx\AppData\Local\plstic4\sync\git

After removing the mappings folder and the gitsync attribute, the Plastic repo won't be related with the git repo anymore and you will be able to remove the Plastic changesets.

PD: We don't allow to delete changeset by default in a repo synced with git because it may break future sync operations.

Regards,

Carlos.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...