Go to assembla and create a new space for git. You will get a string to use for clone or push, such as
git@git.assembla.com:projectname.git
On your local computer (where I have already set up the public key etc for an earlier project)
cd to the directory where your code is stored. Then do these:
git init
git add *
git status
git add .gitignore (and any other .files that were not added)
git commit -m "Initial commit"
git remote add origin git@git.assembla.com:projectname.git
git push -u origin master

6 comments
Skip to comment form ↓
Mauro Mazzerioli
January 9, 2013 at 9:19 pm (UTC -8) Link to this comment
thanks John!
I am also pleased to see you on Quora.
JohnVarghese
January 10, 2013 at 1:20 pm (UTC -8) Link to this comment
@Mauro Mazzerioli Glad you like it.
Mauro Mazzerioli
February 4, 2013 at 10:51 pm (UTC -8) Link to this comment
@JohnVarghese @Mauro Mazzerioli Hi John, I have a problem with an Assembla account. I am using Xcode to push on Assembla repository but it gives me this error from Xcode: fatal: “Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.” If I git push from Terminal I get this error: “fatal: The remote end hung up unexpectedly”. Do you know how to check I have the correct access to Assembla? I might have deleted a keychain entry.
JohnVarghese
February 5, 2013 at 11:18 am (UTC -8) Link to this comment
@Mauro Mazzerioli Hi Mauro. I think you may not have added your public key to assembla. Check out this entry in my blog http://www.johnvarghese.com/permission-denied-publickeykeyboard-interactive/
Mauro Mazzerioli
February 5, 2013 at 2:57 pm (UTC -8) Link to this comment
@JohnVarghese Hi John. Thanks for your post, I have added my public key to Assembla, I could push to the repository before I deleted some keychains in my MacBook. I can push to my other Assembla repositories too, I wonder what could be wrong with this one.
JohnVarghese
February 5, 2013 at 5:28 pm (UTC -8) Link to this comment
@Mauro Mazzerioli So, if I understand you right, you are able to push to other repositories in assembla, but not to this one. This is with the public key as well as without the public key. It has been a while since I actively did anything on assembla or my MBA, so my mind is drawing a blank.
. Are you able to fetch? Can you backup your code changes and re-clone, then reapply your changes?
I don’t think deleting the keychain entries would have caused this problem. There was probably something else that happened around the same time. In any case, when I get desperate in situations like this, I reboot