how to set up an SCM in Xcode 4.x? - version-control

hi friends i am facing problems to configure SCM with Xcode 4.x
And can u tell me how to upload my project to remote server from xcode repositories,and i want share the same project from server by using SCM

Xcode acts only as an SCM client for Git and Subversion SCMS. It can create local Git repositories when you create your project, but not Subversion. Xcode does not help you create remote repositories specifically, it only lets you connect to them.
Which SCM system are you using? Git or Subversion (SVN)? Determine which one and follow its instructions for creating shared repositories on remote servers. They're both very different and Xcode can't help you there.
Once you have them set up, you can then let Xcode know about them either by:
1 - Using the command-line tools (git or svn) or your favorite GUI client to check out / clone your remote repository to some working copy / local clone. Then just open the project with Xcode and Xcode should auto-discover the settings.
or
2 - Opening the Repositories Organizer (Cmd-Shift-2, click Repositories tab) and adding the remote repository there.
Finally, if you have an existing Xcode project that is not under version control, you'll need to use the SCM-specific command line or your favorite GUI tool to bring the project under version control and get it into your remote repository in the way required by the SCM system you're using, then follow the above to let Xcode know about it.

Related

Team Foundation Server - Eclipse and Cross Platform: Unable to clone Git repository using TEE in Eclipse. Error cloning - Not Authorized

I have TFS 2018.2 and Eclipse IDE for Enterprise Java Developers Version 2019-06 (4.12.0). In eclipse I have installed Team Explorer Everywhere plugin and I am able to see all my Git repository however when I try to clone a git repository using the administrator account in TFS I get below error:
Error cloning the <GitName> repository.
http://../..//<GitName>: not authorized.
Clone Error:
Eclipse Version:
Reference Document
In case if the question is placed in the wrong forum path feel free to correct it.
I have tried the resolution provided in https://github.com/microsoft/team-explorer-everywhere#frequently-asked-questions-faq
Also, tried installing latest versions of Egit in Eclipse - https://download.eclipse.org/egit/updates/
I am not sure how to use the older version of Egit to try the import of repository. I seem to have latest version of Egit.
UPDATE:
Apparently I am able to resolve the issue by following below steps:
And creating a Git repository from File menu and then utilizing the 'Copy clone URL' from the first image. Select the newly created repository and perform right click on it to select 'Paste repository path or url' which would ask for authentication and repo would be copied.
However the action items have carried TFS to run into issues:
and
According to your description, I'm afraid you are in the wrong direction to fix this issue.
Your error actually is "not authorized" which is not Authentication not supported. There are totally different issues. Instead of digging into that QA, you should try to figure out why it's not authorized for MyGit repository.
First give a try to use Eclipse with version 4.2 to 4.6 instead of latest according to official link of team-explorer-everywhere.
Supported on Linux, Mac OS X, and Windows. Compatible with IDEs that
are based on Eclipse 4.2 to 4.6.
Besides follow below steps to narrow down the issue:
You should also use git command line by using the administrator
account in TFS and check if you are able to use it to connect/clone
MyGit repository which hosted by TFS server.
Check if your Eclipse can connect to and clone library from any
GitHub repo correctly.
Update or delete cached credentials from Control Panel ->
Credential Manager -> Generic Credentials the password for
git:http://ServerName:xx/

How to use Egit with ssh

I have always used gitHub as my repository but now I decided to store my source code into my local server (Ubuntu 14.04).
I use Eclipse as IDE and to make it working with git I installed Egit plugin.
My objective is to have a centralised repository in my local server at 10.3.16.1 and use my desktop pc and my macbook to push and fetch data from it.
My existing maven spring web based application sits at the moment on my laptop (eclipse)
I created a local git repo and then I added and committed all files. (so far so good)
Afterwards, I created a new remote as follow
I then pushed the master branch to the server but despite it says that the process has been successful I cannot clone the entire source code from my pc but only metadata like commits etc but not source files
Any thoughts on this?
Thanks
I managed to solve this problem on my own.
Apparently Git does not store source files in the centralised repository but only objects.
In order to import all source files I did the following on my PC
In eclipse File-> Import-> Git-> Project from Git
Then I selected Clone URI
I filled the location of the repository as follow
Eclipse retrieved successfully the master branch
Set the local destination of the new repository on my pc
And then I imported all sources accordingly as follow
Then I added the project to my working set
Hope this can be of help

git server with eclipse project

I have a computer running Ubuntu Server. On this computer I have a user named mattgit.
I have another computer running Windows 7. I develop Java applications in Eclipse on this computer.
On my server, I have run "git init --shared --bare" to create a central repository for an Eclipse project. I've done this once for each project in my Eclipse workspace, each in a separate folder.
I want each project in my Eclipse workspace on my Win7 machine to act as a/be a/whatever the terminology is git repository. I want to be able to then push these files back to the central repository on my server. How do I do this?
I've tried cloning the (initially empty) central repository to my Win7 machine to a folder in my Eclipse workspace and then creating a project in there, but Eclipse refuses to create it because it says the directory isn't empty.
I've also tried creating the project using Eclipse in my workspace, then cloning the repository into that folder, but apparently I'm not allowed to do that either.
I've tried using SmartGit and the Git binary and I'm just getting more and more confused.
EDIT: Please assume I know absolutely nothing about what I need to do. I need step-by-step instructions.
You will need three things:
a Git listener service able to listen to your git command (and you don't need gitolite at all here: it is an authorization layer).
See GitStack for Windows (there is a free version)
a git Eclipse plugin including in your Eclipse in order to not switch context when you want to do a Git operation: make sure EGit is installed in your Eclipse.
some instructions importing your existing Eclipse project into a local git repo and to declare your Windows GitStack repo as a remote, in order to push to it.
Create a local repo and import your Eclipse project into it.
Add your remote and push to it.
The instructions of Egit on GitHub are quite complete.
The Vogella's tutorial on Egit is also nicely done.
The simpler way to do that is to create your new project within Eclipse, then right click on the project and go to Team > Share menu.
This interface will guide you to create a new local repository containing your new Eclipse project.
Once your project is managed on a local git repository, Eclipse will give you other context menu entries to manipulate the project on Git. So you will be able to push your commits on your remote repository (the one you created on your server).

Using Source Control with git and new projects

I'm new to SCM and I've managed to create and use a repository for an existing project. By following a variety of posts, I've done the following:
1) Created an account on Assembla
2) Used bash/git in my existing project directory to add, commit, and push the project
3) Used Source Control in XCode to pull, modify, commit, and push changes
Now I want to start a new projection Xcode, and it seems I have to go through the same steps, using a mixture of Xcode 4.2 and bash commands to get the new project into Assembla.
For example, I created a new space on Assembla "newjunk", started a new project in Xcode "newjunk" and did NOT check "create local git repository". I did not run any bash/git commands. In Xcode I cannot "push" because I did not "commit", and I can't "commit" because "no valid working copies were found".
Is this the only way to get a new project into a remote repository?
Or can it all be done from within Xcode, and if so how?
EDIT: Note - I've tried these steps (modified for Assembla and Xcode 4.2) http://www.mindthe.net/devices/2011/04/28/12-steps-to-using-github-with-xcode-4/ which is how I got the "no valid..." message
This helped me a lot
http://helpdesk.assembla.com/customer/portal/articles/678953-setting-up-git-on-windows
I preffered using TortoiseGit

Using Git With Eclipse Remote Systems Explorer

I am doing web development using CFEclipse with Classic Eclipse (Indigo) on a Windows Server.
I am using Remote Systems Explorer to access a Linux box via sftp.
The Linux box has Git installed. There is one branch in the development folder.
I have installed EGit in Eclipse, but there are no provisions for working with a remote system.
Because I cannot develop locally, how should I checkout files, edit and review changes in a browser, and ultimately commit properly? There is no local repository and checking out files through ssh (putty) while editing them in Eclipse does not show my changes when browsed.
If you can access to the remote location through ssh why you don't just simply clone the repository in local and then pull and push the changes ?
I think that cloning the the repository is the best bet in your situation, you have only to install msysgit on your windows machine ...
You can use remote project to achieve what you need. Unfortunately, git operations need to be done on the remote server. But, you can change the files and the files will be changed remotely on fly. To create the remote project you have to right click on the remote folder you want to create the remote project. The context menu you will find "Create Remote Project".
What Eclipse will do is make the modification thru RSE. This means, eclipse will deal with save files remotely.