Issue with excluding folders from a repository. #176254
Unanswered
ToastWasToasty
asked this question in
Repositories
Replies: 1 comment · 2 replies
-
Yeah, that happens pretty often. Once a file has already been tracked in your first commit, updating your .gitignore later won’t actually stop Git from tracking it. That’s why it still shows up even after you add it to the ignore list. What you can do is basically “untrack” those files once. Just open the terminal in your repo and run: git rm -r --cached . That’ll make Git forget the files that should be ignored, without deleting them from your project. You can keep using GitHub Desktop — this isn’t a problem with it, just how Git works in general. Happens to most of us at least once |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I've been attempting to backup my unity project using github desktop, but when excluding certain folders in the .gitignore file, they arent excluded.
I've been told that apparently including/excluding specific folders after a commit has already been made doesnt really do anything. Unfortunately, when making a repository a commit is made automatically regardless. Is there some way I can circumvent this or should I use something other than github desktop?
Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions