Questions tagged [gitignore]

0 votes
0 replies
Folder “node_modules” is being added by git even having a .gitignore file with a Node template
I have a Node App for which I added a .gitignore file with a template for Node. But even with the .gitignore file, the node_module folder keep be...
asked 4 months ago
0 votes
1 replies
What does `syntax: glob/regexp` mean in a .gitignore file?
I noticed in my team's .gitignore file the following lines, and I'm not sure what they mean: ... syntax: regexp ... syntax: glob ... I've trie...
asked 4 months ago
0 votes
3 replies
How to Undo git add -f?
I hava a folder .idea/ in my repository, and it is on the .gitignore list. For some reason, I had used git add .idea/ -f to force git add .idea...
asked 4 months ago
-2 votes
2 replies
How can I Remove .iml files from a Git repository?
How can I keep everyone's .iml files out of an existing git project? (I'm on a Mac) -2 git-scm.com/docs/gitignore ? 2019-05-03 12:46:13Z...
asked 4 months ago
0 votes
1 replies
.gitignore file doesn't seem to ignore anything at all [duplicate]
This question already has an answer here: How do I ignore files in a directory in Git?...
asked 4 months ago
0 votes
1 replies
How to fix .gitignore such that it can allow *.meta files to be uploaded
I'm using gitignore.io to generate a .gitignore file, using unity and visual studio as search terms. However, after uploading it to my repo, i re...
asked 4 months ago
4 votes
3 replies
Ignore gitignore rules
Is there any way to ignore gitignore rules but still check in the .gitignore file? Or maybe we should use a different implementation? This is no...
asked 4 months ago
0 votes
1 replies
How to make sure .gitignore works for multiple Android projects in the same repository
My problem is similar to the one outlined in this post, but the solution did not help. I essentially have one Github repository with a whole bunc...
0 votes
1 replies
gitignore unable to ignore files under certain directories
How do I ignore all folders/files under audit directory? I tried adding **/audit to .gitignore which is present in the root of my project. where...
asked 5 months ago
0 votes
0 replies
How to remove a file or folder from a github history ( from history of my old commits) if the file is not being tracked anymore [duplicate]
This question already has an answer here: Remove sensitive files and their commits from Git history...
asked 5 months ago
0 votes
3 replies
Git ignore not ignoring directories
I'm trying to ignore obj, bin, debug type files/directories from my Visual studio project. I've followed the advice here: ignoring any 'bin' di...
asked 5 months ago
1 votes
2 replies
Files present in .gitignore always get added to git after building Android Project in Android Studio 3.3.2
I have updated android studio from 3.0.0 to 3.3.2. Everytime I build project files like .idea/caches/build_file_checksums.ser and .idea/caches/gr...
asked 5 months ago
1 votes
1 replies
Git - File is on github but also on .gitignore - What happens on git pull?
What happens if you have a file on remote, that is locally on .gitignore, when you do a pull? Will you overwrite the content of the local file?...
asked 5 months ago
1 votes
1 replies
gitignore is not working with Visual Studio
I am trying to commit&push my project changes from a C# project using Visual Studio 2017 to my private gitea repository. Unfortunately build...
asked 5 months ago
0 votes
0 replies
.gitignore jupyter checkpoint files/folder [duplicate]
There is a file that was being tracked by git, but now the file is on the .gitignore list. However, that file keeps showing up in git status aft...
asked 5 months ago
0 votes
1 replies
Include .gitignored files compiled from typescript in `npm install -g`
I'd like to ignore the JavaScript files compiled from TypeScript in my git repo. (That greatly simplifies merging, rebasing, partial commits etc....
asked 5 months ago
0 votes
0 replies
.idea/compiler.xml in .gitignore?
Whenever I gradle build my Spring app in IntelliJ, compiler.xml gets modified and shows up in my git status. Is it safe to put compiler.xml file...
asked 5 months ago
0 votes
0 replies
Source\config\config.inc.ahk is ignored by git [duplicate]
I've looked at some examples on how to ignore everything except certain sub directories like so. # Ignore Everything foo/* # Include sub directo...
asked 6 months ago
1 votes
1 replies
git ignore /* and !/**/somefile* not exclude properly
my git repo directory like this: --ignore_dir/ ----dir2/ ------ignorea3.txt ----aaa.txt ----ignorea2.txt --ignorea1.txt --ignore1.txt --.gitigno...
asked 6 months ago
-1 votes
2 replies
I am creating a program in python what files should i add to gitignore? [duplicate]
This question already has an answer here: Best practices for adding .gitignore file for Python projects? [closed]...
asked 6 months ago
1 votes
2 replies
Can't figure out what is missing after cloning Laravel site on webserver
Using GIT I have built a Laravel site, which among other things uses Laravel File Manager. Locally everything works and when I just transfer ALL...
asked 6 months ago
0 votes
2 replies
Git ignoring the .gitignore file and saying the .DS_Store file is modified
I don't want my MacBook's .DS_Store-files to be committed to my Git repository. Unfortunately my .gitignore and even .gitignore_global seem to b...
asked 5 months ago
0 votes
1 replies
How to remove cached/tracked files after adding a gitignore?
I have a folder in my repository called Design. I have since added /Design/ to my .gitignore file. However, the old files are still tracked and a...
asked 6 months ago
0 votes
1 replies
create .gitignore with java
I'm aware this question might be a duplicate in some sense but first hear me out. I tried to create a code where i can create gitignore file wit...
asked 6 months ago
0 votes
0 replies
gitignore shorthand for ignoring specific folders
I would like to ignore certain folders in my tests directory in .gitignore. Here is what I have now tests/videos tests/screenshots Is there is...
asked 6 months ago