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

behaviour of .gitignore

From
JJ.V. <jvsrvcs@gmail.com>
Date
May 25, 2012, 16:32 UTC
Message-ID
<4FBFB42D.3090303@gmail.com>

On my local machine, I create a /bin/ directory added some bash scripts, comitted and then pushed them to the repository.

Now today I do a git pull and they are gone but cannot see that anyone deleted them in the git log / history, but there is a /bin/ entry in the .gitignore file.

Does this mean, the files are still in the shared repository (orgin) that I could get them back?

I tried removing /bin/ from the git ignore and doing a pull but my /bin/ directory is still not there.

Is there anyway to do a pull now and have it look at my local gitignore and pull the directory back?

thanks
J.V.
Next: Matthieu Moy
Message 1 of 3 in “behaviour of .gitignore”
  1. J.V.May 25, 2012
  2. Matthieu MoyMay 25, 2012
  3. Neal KreitzingerMay 25, 2012

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.