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

Re: git pull not ignoring the file which has been sent to the temporary ignore list

From
Kevin <compufreak@gmail.com>
Date
Jan 24, 2015, 11:03 UTC
Message-ID
<20150124110341.GA15090@vps892.directvps.nl>
In-Reply-To
<1557175.bcUxN10iZq@linux-wzza.site>
On Sat, Jan 24, 2015 at 10:20:46AM +0630, Arup Rakshit wrote:
Show 13 quoted lines
> On Friday, January 23, 2015 01:14:03 PM you wrote:
> 
> [..]
>
> There are some configuration files, like `database.yml`, where we
> generally put our local DB credentials and we don't want to share such
> things. That's why we always put related settings inside the
> .gitignore file. But  while I will change it, git will not track the
> changes of the file, but .gitignore. That's why I used the first
> thread command. But when the time the came to take a `git pull`, I got
> to know about the mess. What should be the ideal decision in this case
> ?
> 

In an ideal sittuation, configuration data is not stored inside git, because this would tie the code only to one environment.

So what you would store in git is a template of the configuration data, that can be used to create the actual config file that is used.

This way, you don't have any problems with having to change tracked files only for you local environment.

Previous: Arup Rakshit
Message 10 of 10 in “git pull not ignoring the file which has been sent to the temporary ignore list”
  1. Arup RakshitJan 23, 2015
  2. Junio C HamanoJan 23, 2015
  3. Arup RakshitJan 23, 2015
  4. Stefan BellerJan 23, 2015
  5. Junio C HamanoJan 23, 2015
  6. Stefan BellerJan 23, 2015
  7. Junio C HamanoJan 23, 2015
  8. Stefan BellerJan 23, 2015
  9. Arup RakshitJan 24, 2015
  10. KevinJan 24, 2015

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.