Answered by : valentin-gorrin
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
opp.js
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Source : | Last Update : Fri, 12 Aug 22
Answered by : jittery-jaguar-4efu2r4ev1k1
git rm -r --cached .
Source : http://www.codeblocq.com/2016/01/Untrack-files-already-added-to-git-repository-based-on-gitignore/ | Last Update : Thu, 28 May 20
Answered by : alert-alligator-zp2p7s7hfraj
$ touch .gitignore
Source : https://help.github.com/en/github/using-git/ignoring-files | Last Update : Tue, 16 Jun 20
Answered by : long-loris-jtybb0t4hnyb
Then in Git Bash you have to write the following line:
git config --global core.excludesfile ~/.gitignore_global
--------------------------------------------------------------------
If the repository already exists then you have to do the following:
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
If the step 2 doesn’t work then you should write the whole route of the files that you would like to add.
Source : https://stackoverflow.com/questions/4308610/how-to-ignore-certain-files-in-git | Last Update : Wed, 28 Apr 21
Answered by : abdulrahmani-shemahonge
$ echo debug.log >> .gitignore
$ git rm --cached debug.log
rm 'debug.log'
$ git commit -m "Start ignoring debug.log"
Source : | Last Update : Mon, 04 Jul 22
Answered by : doriath-arthus
just put the name or the path to your file in a .gitignore file, like this:
your_file.svg <-- ignore the file your_file.svg
*.sql <-- ignore any .sql files
ihm/test/ <-- ignore the whole "test" folder in "ihm"
Source : https://git-scm.com/docs/gitignore | Last Update : Fri, 27 May 22
Answered by : chagai-friedlander
git reset name_of_file
Source : | Last Update : Thu, 30 Jun 22