Git don't ignore my file

Hi,

I did the steps exactly as mosh but the result is different :confused:
Can someone please explain if there is something that i’m doing wrong ?

Thanks in advance

Try ignoring logs/ instead of logs\ (slash vs. backslash)

Nothing happened unfortunately

I’ve ran the exact commands on Git Bash and it worked, then i did a git status on windows terminal and somehow it got applied to it :confused:
But if i create a new file and add it to .gitignore (using windows terminal) it won’t take effect.
So i wonder if it has something to do with the installation of git ? :thinking:

I finally found the solution :slightly_smiling_face:

It had something to do with UTF-8 encoding :
1-I added some lines to my Powershell Profile (I don’t know if that is the main reason it got fixed or not) :

[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
$PSDefaultParameterValues['Get-Content:Encoding'] = 'utf8'

2-I checked the box for => Beta: Use Unicode UTF-8 for worldwide language support :

3-After rebooting my computer, finally Windows Terminal started to ignore logs/ file