Git
26 Oct 2011

Setting Up Springloops with Git

A few weeks ago I spent some time looking at hosted repositories for source code control and version management. I looked at GitHubBeanstalk and springloops. I've used GitHub for some open source projects but I choose Springloops for a private project I wanted to work on with another developer.


One drawback to Springloops was the lack of clear documentation on configuring it for use with Git (the meager documentation is more oriented towards SVN). Springloops does provide documentation on how to configure ssh for multiple users.

Here are the steps I used to setup git with Springloops.

Configure Git For Springloops

If you're using a different email account than one you used for your Springloops login, change the email using the git command:

$ git config --global user.email "email@domain.com"

Login to Springloops, click Edit My Profile > SSH public keys > Manage. Choose the Add a new SSH key tab and then the Choose File button. Select and upload the is_rsa.pub file from the $home/.ssh directory.

Update: The location for the keys has moved to Edit Profile > Profile details > Manage.

You next need to retrieve your Repository URL. From your Springloops dashboard, click the tab associated with your project which should take you to the project Overview page. From this page, select the Source & Deploy tab. In the center of the page there will be another set of tabs from which you should select Get Started. The Repository URL should be displayed and it should look something like this:

$ ssh://sls@slsapp.com:1234/<login-name>/<project-name>.git

Enter the following Git command to configure the remote Springloops repository. I'm going to choose the Springloops for my remote repository name.

$ git remote add springloops ssh://sls@slsapp.com:1234/<login-name>/<project-name>.git

Push the existing project to springloops with the following command:

$ git push springloops master

 

 

 


Tags:
0 comments