r/git • u/Ill-Exchange-2377 • 12d ago
Why is .gitignore not being added
I want my .gitignore file to go with my repository, but it keeps disappearing for some reason. I am sure I added it explicitly at some point, but it's not only gone from the repository but also from the file structure. I am thoroughly confused
Edit, sorry, it didn't disappear, i just failed to see it. It's all as intended, I am just stupid
0
Upvotes
16
u/bikeram 12d ago
Did you .gitignore it??
It should add like any other file. Did you put it in the root of the repo?
5
u/F0tNMC 12d ago
It happens!
ls -awill show you everything in your current directory.2
u/lassevk 11d ago
We've all been this stupid, don't sweat it :)