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

.env is not being ignored by this .gitignore file.

From
Skybuck Flying <skybuck2000@hotmail.com>
Date
Aug 1, 2025, 20:13 UTC
Message-ID
<DB7PR02MB426582D352EC00FDCDC5CD45B326A@DB7PR02MB4265.eurprd02.prod.outlook.com>
Command line tool "Gemini cli" uses .env text files to store API keys.
I am trying to make git version 2.43.0.windows.1 ignore these .env files.
However for some reason it refuses to do so. (Any idea why ?)
Here is the .gitignore file:

# Modern Delphi 12.3 .gitignore # #------------------------------------------------------------------------------- # Delphi / C++Builder Compiled Output & Binaries #------------------------------------------------------------------------------- *.exe *.dll *.so *.a *.lib *.bpl *.dcp *.dcu *.obj *.o *.res # Compiled resource files

#------------------------------------------------------------------------------- # IDE Generated, User-Specific & Intermediate Files #------------------------------------------------------------------------------- *.~* *.bak *.old *.tmp # General temporary files *.temp # General temporary files *.local *.dsk *.cfg *.map *.tds *.drc *.rsm *.log *.pch *.ipch *.stat *.identcache *.dproj.local *.dproj.user *.groupproj.local *.groupproj.user *.bkm # Delphi IDE bookmarks *.tvsconfig # TestInsight configuration files *.history # Files with .history extension

# Legacy project files *.dof *.kof

#------------------------------------------------------------------------------- # IDE History, Recovery & Autosave #------------------------------------------------------------------------------- **/__history/ **/__recovery/ *.autosave

#------------------------------------------------------------------------------- # Output Directories (using **/ to match at any depth) #------------------------------------------------------------------------------- **/Win32/ **/Win64/ **/Debug/ **/Release/

# Cross-platform output folders **/Linux64/ **/OSX64/ **/OSXARM64/ **/Android/ **/Android64/ **/iOSDevice32/ **/iOSDevice64/ **/iOSSimulator/

#------------------------------------------------------------------------------- # Common Temporary / Local / Sensitive Files (General) #------------------------------------------------------------------------------- *.zip # General compressed archives (often backups or downloads) *.env # Environment variable files (CRITICAL for sensitive data)

Next: Skybuck Flying
Message 1 of 3 in “.env is not being ignored by this .gitignore file.”
  1. Skybuck FlyingAug 1, 2025
  2. Skybuck FlyingAug 1, 2025
  3. rsbecker@nexbridge.comAug 1, 2025

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.