Uploading code in Gitorious

121 Views Asked by At

I created an account in Gitorious and I want to upload code from my computer, but I don't know how to do it. Searching in internet I realized that I can't watch the menu to upload code from the dashboard.

I created the public SSH Key and I created a project and a repository. How can I upload the code from my computer?

Thanks.

1

There are 1 best solutions below

0
Adam On

The answer :

  1. add new project and new repo on gitorious
  2. on your local disc in program directory :

    git init
    git add .
    git commit -m " name " 
    git remote add origin [email protected]:my-project-name/my-git-repo.git
    git push origin master
    

If you will have error :

   fatal: remote origin already exists.

then :

   git remote rm origin
   git remote add origin [email protected]:my-project-name/my-git-repo.git
   git push origin master

It is based on :

  1. faq - How do I point my local Git repository at Gitorious?

  2. Creating a new git repository in Gitorious by kosmas

  3. Getting started with Git and Gitorious by sagarun