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

Re: git pull

From
NSNicolas Sebrecht <nicolas.s.dev@gmx.fr>
Date
May 18, 2010, 16:31 UTC
Message-ID
<20100518163115.GA12950@vidovic>
In-Reply-To
<AANLkTimLZgkojC5L0ZdDewhprLgehLw2w4EZDwyViF4R@mail.gmail.com>
The 17/05/10, matteo brutti wrote:
> Hi,
Hi,
Show 5 quoted lines
> 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.

"/dev/sda" is the physical device and "/dev/sda6" a physical partition of the hard drive "sda".

Inside a partition, we may find (usually after the installation process of the system) a filesytem. The filesytem contains the files we can access to when mounted to the virtual filesytem (begining at "/").

While using user application which works on usual files (like git does), we don't care about the underlying local hard drive device ("/dev/sda" here).

You can safely forget all the "/dev/<something>" things here.
> 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?

With the above in mind, could you please try to rephrase your problem (and maybe provide a basic use case with the commands to reproduce it) ?

-- 
Nicolas Sebrecht
Previous: matteo bruttiNext: hasen j
Message 2 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.