Here, I'm using a linux terminal. Assume, I have created a new directory
mkdir project_new
cd project_new
git init
And I've created two new files
touch a.txt b.txt
Now I'm staging and committing
git add .
git commit -m 'Add two new files a.txt b.txt'
Creating a .gitignore and made it as a hidden file
touch .gitignore
echo .DS_Store >.gitignore
Now can you help me out in the next steps
how to add both 'a.txt' & 'b.txt' inside the .gitignore to make them as untracked files?