Search code examples
gitgitignore

gitignore doesn't ignore untracked file


Need to setup gitignore for upcoming project, current testing however shows it doesn't actually ignore the untracked file.

eBGTest being my git repo, the file I'm trying to ignore is eBGTest/test

eBGTest/.gitignore

/test/
.test
test
test
test
test
/test
./test
eBGTest/test
test.test

Edit (git status output): Untracked files: (use "git add ..." to include in what will be committed)

    .gitignore
    test

no changes added to commit (use "git add" and/or "git commit -a")

It's not being tracked by git as you can see above


Solution

  • try to add like this

      .test #or /test/
    

    OR see this sites Github

    OR gitignore

    OR tutorials