-2

I'm using git gui. Trying to exclude some files (*.dll, *.pdb - for example from my Unstaged Changes list). I have a .gitignore file (UTF-8), located at the same folder as the .git folder. For the test case, I'm trying to remove *.dll files(I have these kind of files already committed in the past - I just don't want them to appear in the Unstaged Changes, after making a new build). Here is my .gitignore file content:

    # See http://help.github.com/ignore-files/ for more about ignoring files.

    # compiled output
    /dist
    /tmp
    /out-tsc
    # Only exists if Bazel was run
    /bazel-out

    # dependencies
    /node_modules

    # profiling files
    chrome-profiler-events*.json
    speed-measure-plugin*.json

    # IDEs and editors
    /.idea
    .project
    .classpath
    .c9/
    *.launch
    .settings/
    *.sublime-workspace

    # IDE - VSCode
    .vscode/*
    !.vscode/settings.json
    !.vscode/tasks.json
    !.vscode/launch.json
    !.vscode/extensions.json
    .history/*

    # misc
    /.sass-cache
    /connect.lock
    /coverage
    /libpeerconnection.log
    npm-debug.log
    yarn-error.log
    testem.log
    /typings

    # System Files
    .DS_Store
    Thumbs.db


    #server side
    *.dll
    *.pdb
    *.suo
    *.cache
    *.ide-wal
    *.out

What Am I doing wrong ?

Guy E
  • 1,775
  • 2
  • 27
  • 55

1 Answers1

0

I was missing important step in order to make the .gitignore active with files which were already tracked. I found the solution in this stackoverflow question: .gitignore is ignored by Git

by executing these commands, I solved the problem (after making sure all my files are committed): git rm -r --cached git add . git commit -m "fixed untracked files"

  • This made my files untracked - more than I needed - now I need to figure out how to make them controlled again
Guy E
  • 1,775
  • 2
  • 27
  • 55