G
G
German2021-06-24 22:51:51
git
German, 2021-06-24 22:51:51

How to see why git is ignoring a file or folder?

It's decided.

git is ignoring the folder, I don't understand why

PS D:\VS\UnknownEngine> git status --ignored
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   .gitignore

Ignored files:
  (use "git add -f <file>..." to include in what will be committed)
        .vs/
        Debug/
        MainWindow/Debug/
        MainWindow/MainWindow.vcxproj.user
        third-party/Vulkan/


My .gitignore does not hide this folder.
What else could be hiding it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2021-06-24
@mrjbom

git doesn't operate on folders, only files.
there are only two options:
1. you don't double commit.
2. in ignore there are all files on a certain path.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question