Why Certain Untracked Folders Are Not Stashed with git stash -u?
Good day everyone, please I used git stash -u to stash changes. While some untracked files were stashed, my supervye folder remains untracked. Interestingly, other files copied from the same location were stashed successfully. My .gitignore doesn't explicitly ignore this folder.
Is this behavior expected for untracked folders with git stash -u? Or could there be another reason the folder isn't being stashed? @Middleware & OS
4 Replies
@Sterling git stash -u should normally stash untracked files ,
But funny enough git might be ignoring hidden files by default. Check if supervye starts with a dot (.) . If so, you can try git stash -u --include-untracked so you can clearly include your untracked files
I don't think that's the problem, and my supervye folder contain so much of files
@Sterling ohh then maybe that's why it is untracked . The thing here is that if a folder is exceptionally large, Git might be skipping it cus of a hidden size limit. Just try to disable this limit just temporary and restash again.
Okayy