sábado, 7 de setembro de 2013

How to install Github


About Github

About Git Git is a distributed version control system released to the public in 2005. The program allows for non-linear development of projects, and can handle large amounts of data effectively by storing it on the local server.

This tutorial will cover two ways to install Git.


How to Install Git with Apt-Get

Installing Git with apt-get is a quick and easy process. The program installs on the virtual private server with one command: sudo apt-get install git-core

sudo apt-get install git-core


After it finishes downloading, you will have Git installed and ready to use.

An exemplo for donwload the code of project.

Every project has an associated Git associated link.
Let’s take the example of Mozilla Chromeless. The project codebase is available at
http://github.com/mozilla/chromeless

The associated git link is
http://github.com/mozilla/chromeless.git

To download the code,
$ git clone http://github.com/mozilla/chromeless.git
Initialized empty Git repository in /home/user/experiments/git/chromeless/.git/
remote: Counting objects: 6865, done.
remote: Compressing objects: 100% (4446/4446), done.
remote: Total 6865 (delta 2272), reused 6435 (delta 2063)
Receiving objects: 100% (6865/6865), 2.46 MiB | 29 KiB/s, done.
Resolving deltas: 100% (2272/2272), done.
Now list the directory contents
$ ls
chromeless
$ ls chromeless/
impl  README.md  run  template  ui
Let’s check all the contents. You can see some hidden files
$ ls -a chromeless/
.  ..  .git  .gitignore  impl  README.md  run  template  ui

Nenhum comentário:

Postar um comentário