Control your versions and program in group with Git and Gitorious

These tests and the results were carried out in the Canaima distribution meta

Git is a version control software designed by Linus Torvalds, with the efficiency and reliability of application versioning in mind when they have a large number of source code files.

Gitorious is the name of a system to offer hosting to cooperative development projects of free software based on a Web environment using the Git distributed version control system, as well as the software of this open source server that is developed and hosted in it .

setting_up_gitorious_on_your_own_server_article

What can we do with these two elements?
These two elements go hand in hand, with git we package our source code. With Gitorious we share it in a simple and elegant way, so that more developers can contribute to the project, at the same time we manage the versions that have been made previously.

How to use Git & Gitorius?

Let's start with Gitorius

  • Register and confirm account by mail
  • Create SSH Key. The SSH Key is our access key to upload the files to gitorius.
  • To create the access key we go to the terminal and install the package "sudo apt-get install ssh"
  • We execute in the terminal "ssh-keygen"
  • We follow the steps and enter the key.
  • If everything goes well, we have our password, it will be created
  • We access the /home/usuario/.ssh directory
  • We copy what is inside the id_rsa.pub file
  • Then we access our gitorious session and enter what we copied to the "Manage SSH Keys"
  • Now, we can create the project on the gitorius page. "Create a New Project", we fill out the form.
  • We create the repository, we add a name and a description to it.

Now we go with GIT

Now we request a copy of the project.

git clone git@gitorious.org:nombredelrepositorio/nombredelrepositorio.git

cd nombredelrepositorio

Create a branch called "master" in your repository from Gitorious, running:

git remote add master git@gitorious.org:nombredelrepositorio/nombredelrepositorio.git

Copy all the source code of your project inside your current directory:

cp -rv /path/to/your/code/nombredelrepositorio/* . O crea los archivos fuente de tu proyecto

Add the new files to this branch (master):

git add .

Commit this change, I mean commit all the files you copied a minute ago:

git commit -a

Update your project in the Gitorious repository:

git push --all

Notes:

There are more options with git, this is the basics, to be able to create the project, upload and update the files, obviously git is more complex.

I know there are front-ends for git but I prefer it that way, and that's what the article is about.

Also applies for bitbucket


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   eliotime3000 said

    Pretty handy, to be honest, but it's much safer to do it on Debian than Canaima (although Canaima is on par with Ubuntu, to be honest).

  2.   ferchmetal said

    it's interesting!

  3.   He passed through here said

    Very good, I installed in the debian gitosis + gitweb (behind nginx) and the truth is I am very happy, above all, because I give / etc from each team and I have a faster and more visible change control, so to speak.