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 : ivan-samoiliuk
# OSX
#
.DS_Store
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof
# node.js
#
node_modules/
npm-debug.log
yarn-error.log
# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/
*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
# Bundle artifact
*.jsbundle
# CocoaPods
/ios/Pods/
Source : | Last Update : Wed, 24 Nov 21
Answered by : chagai-friedlander
git reset name_of_file
Source : | Last Update : Thu, 30 Jun 22