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

Git Confusion

From
PTPaul Tarjan <ptarjan@gmail.com>
Date
May 29, 2009, 07:43 UTC
Message-ID
<815c8c330905290043i4c99a753jd5ad9bdd4cf18bbc@mail.gmail.com>
Hi all,

I'm new to git and probably doing something very dumb, but I can't seem to resolve this.

I have a remote repository and a local one. I ssh to the remote machine, goto the repository directory (not a bare repository), edit a file and commit it. All if fine.

I leave the remote host and go into the local git directory. Doing "git pull origin master" says "Already up-to-date." but there is a file I changed remotely, and I want to pull it locally!

The local repo was made with "git clone http://example.com/.git". I have no branching (both are on master).

My way around this, is on the remote server, I do a "git push other master", and then on the local one I do "git checkout HEAD file1" for each file. Painful and I'm sure it is wrong.

Any ideas? How do you debug this?

Thanks Paul

Next: Jeff King
Message 1 of 10 in “Git Confusion”
  1. Paul TarjanMay 29, 2009
  2. Jeff KingMay 29, 2009
  3. Jakub NarebskiMay 29, 2009
  4. Jeff KingMay 29, 2009
  5. Paul TarjanMay 29, 2009
  6. Avery PennarunMay 29, 2009
  7. Jeff KingMay 29, 2009
  8. Sitaram ChamartyMay 30, 2009
  9. Jakub NarebskiMay 29, 2009
  10. Sitaram ChamartyMay 30, 2009

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.