Search
Get Started
TTC
Theo's Typesafe Cult
•
4y ago
alexjyoung
Lotsss of files being changed
Should I see this many files being changed by webpack
(
?
) whenever I make small updates to a few files
? Is there something im not gitignoring properly or something
Theo's Typesafe Cult
Join
26,249
Members
View on Discord
Was this page helpful?
Yes
No
N
nexxel
•
11/22/22, 3:44 AM
put
.next in
.gitignore
N
nexxel
•
11/22/22, 3:45 AM
its the folder for your dev server cache and build stuff
A
alexjyoung
OP
•
11/22/22, 3:51 AM
weird
, i have it setup as a monorepo with the create
-t3 app inside packages
/giterate
-app
. In gitignore
, I have
but still those files show up
A
alexjyoung
weird, i have it setup as a monorepo with the create-t3 app inside packages/gite...
N
nexxel
•
11/22/22, 4:02 AM
are you using turborepo
?
N
nexxel
•
11/22/22, 4:02 AM
you prolly should have the gitignore inside giterate
-app
N
nexxel
•
11/22/22, 4:03 AM
the gitignore in the parent should not contain nested files that have to be ignored from what i know
A
alexjyoung
OP
•
11/22/22, 4:21 AM
not using turborepo
A
alexjyoung
OP
•
11/22/22, 4:21 AM
gah why isnt this working lmao wtf
A
alexjyoung
gah why isnt this working lmao wtf
L
Leonidas
•
11/22/22, 9:17 AM
You have to remove these files from ur git
„repo
“ in case you already committed them once
L
Leonidas
•
11/22/22, 9:17 AM
Adding them to gitignore AFTER already commiting them has no effect
- this is how git is built
& intended to work
L
Leonidas
•
11/22/22, 9:18 AM
git rm
.next
—cached
https://git-scm.com/docs/git-rm
L
Leonidas
•
11/22/22, 9:21 AM
This will not remove them from your git history
, which I would also not recommend
L
Leonidas
•
11/22/22, 9:21 AM
Anyway
, here are the docs for cleaning up a git history
:
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository
/packages/giterate-app/.next/
/packages/giterate-app/.next/