«

»

Print this Post

Steps to make an git initial push to assembla

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

Permanent link to this article: http://www.johnvarghese.com/steps-to-make-an-git-initial-push-to-assembla/

6 comments

Skip to comment form

  1. Mauro Mazzerioli

    thanks John!
    I am also pleased to see you on Quora.

    1. JohnVarghese

      @Mauro Mazzerioli Glad you like it.

      1. Mauro Mazzerioli

        @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.

        1. JohnVarghese

          @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/

        2. Mauro Mazzerioli

          @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.

        3. JohnVarghese

          @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.
          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 :) . Are you able to fetch? Can you backup your code changes and re-clone, then reapply your changes?

Leave a Reply