git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git pull

From
hasen j <hasan.aljudy@gmail.com>
Date
May 19, 2010, 11:03 UTC
Message-ID
<AANLkTikDmfiUwhn2wQNVkhTVMUpv2pyp5pU5OvmfzM-T@mail.gmail.com>
In-Reply-To
<AANLkTimLZgkojC5L0ZdDewhprLgehLw2w4EZDwyViF4R@mail.gmail.com>
On 17 May 2010 15:51, matteo brutti <webmbackslash@gmail.com> wrote:
Show 15 quoted lines
> Hi,
> i'm learning about git and soon have a question.
> My repo is in /dev/sda6 and my home is in /dev/sda4, as are both in
> local i thought that when i committ, i'll found the files on repo
> changed, it was not so! I learn i have to use git pull, but i didn't
> understand why.
> I made some tries, put my repo in /home/user/myrepo cloned in
> /home/user/myclones changed files and committed and the changes was in
> the repo without any need of pulling, and i have permission to write
> to /dev/sda6, so why have i to pull changes?
>
> Thanks.
>
>
> Matteo

If you clone repoA into repoB, then you commit some new changes to repoA, you won't see the same changes in repoB unless you pull them from repoA.

I don't think it matters whether or not they are in the same partition or not.

As far as I understand, if you clone within the same partition, the object database might be hard-linked. This won't affect what files you have checked out though. It would just mean that you won't need to "fetch", because the objects are already there.

Previous: Nicolas Sebrecht
Message 3 of 3 in “git pull”
  1. matteo bruttiMay 17, 2010
  2. Nicolas SebrechtMay 18, 2010
  3. hasen jMay 19, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.