LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GIT - explanation (https://www.linuxquestions.org/questions/linux-newbie-8/git-explanation-4175414921/)

casperdaghost 07-04-2012 03:56 PM

GIT - explanation
 
I need to set up a git repository at work - I am looking at a this tutorial:
Code:


http://www.vogella.com/articles/Git/article.html

But i really dont understand git. i see that sometimes people have there repositories on line an you can view their code from a browser.

It seems that the repository that i built just exists on the host where git was installed.

Does the repository that i build up on my host get ported to a space on the cloud, where i could download that repository to any machine in my network - or on my work and home pc (so i could work on work projects at home). I think that most of the tutorials (and the guys at work) asume that the user knows just what git is and don't explain what it is, or what it potential uses are

es0teric 07-04-2012 04:15 PM

A git server will contain one or more repositories. From that, other users can clone the repository, update the code, and optionally merge it back into the repository they got it from.

Github is a popular website that provides a web-interfaces to git repositories, but you don't necessarily have to use Github at all while using Git.

I've heard this book is great for understanding it better: http://www.amazon.com/Version-Contro.../dp/0596520123

TobiSGD 07-04-2012 04:31 PM

May be this can help: http://www.sbf5.com/~cduan/technical/git/

casperdaghost 07-04-2012 04:38 PM

when I installed git on my host at work - did a repository get created in a cloud somewhere, that i could upload to and dowload code from - or is that repository located just on that work host?

this is all i have done so far:
Code:

sudo apt-get install git-core

TobiSGD 07-04-2012 04:44 PM

You have to explicitly create a git repository on a cloud server or a service like github, otherwise it will only exist on the machine where you set it up (and the machines that manually clone the repository).


All times are GMT -5. The time now is 05:37 PM.