LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to use git? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-git-888088/)

xeon123 06-24-2011 06:17 AM

How to use git?
 
Hi,

I've installed git and I'm trying to understand it how it works. First of all, I added a random directory to the git with the command "git init; git add .", then I commit the files with "git commit -m "Init"".

1 - After I commit the files, I was expecting that those files would go to a git repository, just like svn. Git uses a repository?


2 - To use git, it's necessary to use github?

3 - How do I import svn projects to git?

MTK358 06-24-2011 08:53 AM

Quote:

Originally Posted by xeon123 (Post 4394437)
1 - After I commit the files, I was expecting that those files would go to a git repository, just like svn. Git uses a repository?

What makes you think that they didn't?

Note that git is fundamentally different from SVN since it's a "distributed" version control system. That means that everyone has their own loacl repository containing the full history of the project. Pushing changes to a central repository is optional, and the "central repository" concept is not built into git in any way.

Quote:

Originally Posted by xeon123 (Post 4394437)
2 - To use git, it's necessary to use github?

Absolutely not.


All times are GMT -5. The time now is 01:21 AM.