Search code examples
githubgithub-for-mac

What happens if you removed .gitignore?


Just as the title states, I am curious as to what happens if you removed the .gitignore file. Since I am a beginner, I have absolutely no clue where this file is stored and I am also asking because there is a good chance that I might have removed it by accident by not following instructions (and not reading the instructions as I used them).

My whole repo is officially ruined, I have a ton of untracked files appearing when I do 'git status' that didn't used to appear before this. What do I do ? Is all this happening because I deleted .gitignore? I might've deleted it because one of my 'git push' commands recommended that I deleted it and what not. Thanks in advance..


Solution

  • yeah your gitignore does what it says, it ignores certain files/file types so they don't show up one your github. You'd have to make a new .gitignore file or you could try this site: gitignore.io