">
 

The gitignore quietly ate my most important file

Iniciado por joomlamz, Hoje at 14:25

Respostas: 0   |   Visualizações: 1

Tópico anterior - Tópico seguinte

0 Membros e 1 Visitante estão a ver este tópico.

The gitignore quietly ate my most important file



Tópico: The gitignore quietly ate my most important file
Categoria: Tutoriais | Programação & Tecnologia
Idioma Principal: Português (Conteúdo de Tecnologia)

Descrição do Conteúdo / Informações:
-------------------------------------------------------------------------
I once spent days building a load-bearing module in a repo, committing around it the whole time, and discovered later that a broad gitignore pattern had been silently excluding it from version control since the day it was created. Every commit looked healthy. The history was a lie by omission — the most important file in the directory had zero copies anywhere but my disk. Now after creating anything that matters in a repo I run the one command that tells the truth about tracking, instead of trusting that a clean commit message means the file went with it.

A commit succeeding tells you nothing about what it contains. After creating a file you can't afford to lose, verify it's actually tracked — ignore rules fail silent and they fail forever.

What's the equivalent lesson your worst bug taught you?


Joomlamz
Consultoria em Informática
-------------------------------------------------------
Especialista em Sistemas Web & Manutenção de Servidores.
A desenvolver o novo AplPortal com suporte a PHP 8.
Precisa de ajuda profissional? Contacte-me.

Tags: