LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2011, 07:17 AM   #1
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Rep: Reputation: 16
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?
 
Old 06-24-2011, 09:53 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by xeon123 View Post
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 View Post
2 - To use git, it's necessary to use github?
Absolutely not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 03:09 PM
SBo-git - slackbuilds.org on git (with patches for current) ponce Slackware 47 03-12-2011 06:12 AM
setting git-diff --color-words as git-diff potuz Linux - Software 5 09-09-2010 02:31 PM
why is git scm named 'git'? hottdogg Linux - General 5 02-03-2009 08:25 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 11:36 PM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration