Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-19-2008, 06:54 AM   #1
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31

I am (unfortunately) unable to understand the difference between git-clone and git-checkout

man page says git-clone will clone the repository and git-checkout will check out the branch of a tree...

But this doesnt tell me anything..

Please shed some light....
Old 06-19-2008, 07:11 AM   #2
LQ Newbie
Registered: Mar 2008
Posts: 8

Rep: Reputation: 0
I'm not too sure about this, but git-clone will clone the entire repository. With git, there is no one separate repository, but each user has his own. Within that repository, you can create your own branches, etc., and migrate between them with git-checkout.
Old 06-19-2008, 09:11 AM   #3
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,013

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
After a repository is cloned with git clone git://<repository>, you need to checkout before you can use git-pull to pull just the changes in the repository.


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
Managing branches in Git Mike_W Programming 2 01-19-2008 03:27 PM
git cvs troubles PatrickNew Linux - Software 2 01-14-2008 02:49 PM
How to edit some file through git iro_number1 Linux - Software 1 01-04-2008 07:50 AM
how do i git xp and unbuntu on my machine? madman19567 Linux - Newbie 3 12-29-2007 10:16 AM
KMail is a git acid_kewpie Linux - General 0 09-15-2001 01:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 AM.

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