Copying Plastic Cloud Repo - plasticscm

Just wondering if this is still the way to copy a cloud repo
Simple repository clone operation
When you're working in distributed mode with a local development server and want to join a project, you have a lot of work ahead with PlasticSCM.
Open PlasticSCM, go to repositories view.
Type in the name of your local plastic server.
Create a new empty repository.
Right-Click and create a workspace from that repository.
Open that workspace.
Go to sync replication view.
Add your local repo as source repository.
Add the repository which holds the project you want to join (clone to your local server) as destination repository.
Click refresh.
Pull the changes.
Open your local workspace.
Click update workspace.

Yes, if you want to move a cloud repo to a local server, using the synchronization view is the recommended workflow:
https://www.plasticscm.com/documentation/gui/plastic-scm-version-control-gui-guide#Chapter23:TheSynchronizationview

Related

Running job on local jenkins with local repository

I have Selenium project and i want to run my job on local Jenkins 2.176.1 from local repository (using path to my project folder on disc).
Do You know where's that option? I remember that I use this option few months ago, but now I can't find box for path to files on disc.
Now I only see git/subversion option.
[]
Linking-jenkins-local-git-repository.
Go to Source Code Management tab and select Git
The critical part is what you enter here as the “Repository URL”. The correct value should start with file://// for a local repository which is created on your PCs local file system.
For a test project which was created under “/usr/local/projects/reporting-servicet” the Repository URL should be entered as “file:////usr/local/projects/reporting-service”.
Now save this configuration, go to “Jenkins” dashboard (http://localhost:8080/) and click your projects name on the right
#Sunny Sharma's answer works well for a local git repository. I setup a Multibranch Pipeline Project, added the following into Branch Sources > Git > Project Repository
file:///<path-to-local-git-repository>
or simply w/o file:///
<path-to-local-git-repository>
Where file:/// or file://// both are working for *nix style forward slash path. Even though you're using a local git repository, any changes you made needed to be committed locally first in order to let Jenkins check out and pick them up. Validated on Jenkins 2.263.4.

What is the correct way to change the config of a new Gerrit project?

I have multiple projects that I need to create under Gerrit (I am owner/root).
My gerrit location is /home/gerrit/
The first project was created under /home/gerrit/review_site/.
(pointing to git repo in /var/www/gitrepos)
When I create a second project from the Gerrit Web interface (Create Project link), I inherit the All-Projects project --
I think from (review_site/etc/gerrit.config).
It gives me a choice to inherit from another project, but there is no relevant parent project, as this second project has different options mostly (different groups, etc.).
I don't see any way to configure options during the Create Project step.
Once the project is created, I see that it shares the /home/gerrit/review_site/ folder (and so shares logs, etc.)
What is the best way to change the new project's config? I can clone the git repo, upload the changes through Gerrit. But can I change the directory and other details from under it?
Which config file should it use and how do I specify it? Do I need to restart the Gerrit server as the config file will then be changed? At the moment, I'm not sure what the architecture should be:
- should each project be in a different directory? (/home/gerrit/project1, /home/gerrit/project2, ...?)
Any help wrt how to manage separate projects in Gerrit would be appreciated.
You can't associate different "gerrit.config" configurations for different projects (repositories). The GERRIT-SITE/etc/gerrit.config file is a unique configuration file for the Gerrit server not for a specific project. These are the project options you can set.
The local filesystem directory where the Git repositories are created is configurated using the gerrit.basePath option in the GERRIT-SITE/etc/gerrit.config file. See more info here.

How to delete all local and remote Git on Xcode 7 project

I'm working on an iOS Xcode project whose previous developer has configured and committed to local git and remote git using his account. Now I want to delete every source control existing on the project (local and remote) and recreate a new one. How can I make everything fresh so that I can commit and use the source control? (I don't have the previous developer account.)
in order to delete your local git you need to open your file system where your project is located and delete the .git folder. please notice that this folder is hidden by default so you will need to show hidden files and folders before doing it.
Delete of remote repository should be done on the server. If for example your are using github.com then you need to go to github.com and inside your repository go to settings tab and on the bottom you will see the Danger Zone there you can delete your remote repository.
The easiest way is to remove the invisible .git directory at the root level of the project. From there, you can recreate the repository and any remotes.
Be warned, this will delete all history for this project!
To remove all local and origin branch from XCode 8 follow these steps :
1. Source Controll / ProjectName/ Configure ProjectName.
2. In Configure ProjectName Window select Branches tab.
3. Select any branch name from local or origin.
4. Click on "-" icon on bottom left.
That branch will be removed from local machine.
And for removing branches from Github server you can delete repos from server.

Question marks in project navigator Xcode 5

i just updated to Xcode 5 and my project is using GIT, after update completed suddenly question marks appear in project navigator file near each file.
when i am trying to Commit i don't see what files have been changed, i cannot pull also
and when i am trying to push it gives :Push Success" message but the repository on GitHub don't updated.
You probably did not set up your git repository properly. There are ways of adding external git repositories, but they tend not to work well for github (in my experience) and always lead to these sorts of issues.
If you want to set up a remote git repository through github on XCode these are the steps you should take.
Make the repository on github. Make sure to add the .gitignore file for Objective-C.
Clone the repository.
Go to XCode, press "create new project"
Create the project in the folder you cloned the repo to. I always name it the exact same thing, but I don't know if that is necessary.
Make sure not to select create local git repository.
This will definitely create a project that is under version control by a remote git repository hosted on github.
Quick fix is to Create or Save the new project 'outside' the directory (say Desktop) that is not linked to your github/bitbucket

How can I push to bitbucket.org without my project parent directory

I had created a remote repo with bitbucket.org, for example, https://somebody#bitbucket.org/somebody/test.git
When I pushed my local repo to the bitbucket repo by Eclipse EGit, I got all my project files in a parent directory, for example, https://somebody#bitbucket.org/somebody/test.git/Test/XXX. But I only hoped all my project files located in the repo root, for example, https://somebody#bitbucket.org/somebody/test.git/XXXX.
How can I do? Thanks!
eGit converts eclipse project into a folder under your Git repo when you 'share' it. This is the way eGit works, so I don't think what you asking is possible with eGit.
It is better this way IMO because such design allows for several projects in the same Git repository, which is very common.

Resources