Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

why is git file not tracked in git?

In my git project, the file dir-name/file.txt is not tracked by git, but I want it to be tracked. In git status the file is not listed in the tracked files and not in the untracked files. git add dir-...
J. Doe's user avatar
  • 331
0 votes
0 answers
21 views

I can't get token file to be ignored by git [duplicate]

I accidentally added my token file(tokens/webhook.token) to my first git commit and now i can't get .gitignore to ignore it. I have tried git rm --cached tokens/webhook.token but it keeps wanting too ...
Niels Groen's user avatar
-2 votes
0 answers
27 views

New .gitignore file is not working as expected [closed]

When attempting to create a venv, the files created from that command are not ignored I created the file Added some directories and files to the .gitignore, including /venv/ Committed my changes ...
grammcrackerr's user avatar
0 votes
2 answers
36 views

.gitignore: I want to create an exclusion for my [Bb]in/ ignore line with no success

I have the following in my .gitignore: [Bb]in/ # this is line 164 # Allow bin directories and their contents under any artifacts folder !*/artifacts/[Bb]in !*/artifacts/[Bb]in/ !*/artifacts/[Bb]in/** ...
g.pickardou's user avatar
  • 35.6k
0 votes
0 answers
24 views

On restart, VS Code fails to ignore a directory listed in `.gitignore` containing a second repo

I am using Nanoc as a static site generator, managed with GIT. Nanoc creates an "output" directory in the site’s main repo. This is explicitly excluded in the site's main .gitignore file ...
Dave Everitt's user avatar
  • 17.8k
0 votes
1 answer
49 views

The difference between .gitignore and .Rbuildignore

I might be asking a dumb questions but can someone tell me the difference between .gitignore and .Rbuildignore when developing a R package with GitHub? Thanks. EDIT: could you explain what kind of ...
MTMT's user avatar
  • 21
-1 votes
2 answers
61 views

Best way to keep your mySQL info out of a public repo [duplicate]

I am working on a website and using git. The repo is public but I don't want the mySQL info to be part of it. Should I just put the connection code in a file then block that file with .gitignore? Is ...
Trent Tompkins's user avatar
1 vote
1 answer
75 views

Android Studio: Should *.toml files be version controlled?

I've been using Android Studio for years, but only recently have I started seeing files with the *.toml suffix. I see that they work with gradle files, but I have been migrating to kotlin instead of ...
SMBiggs's user avatar
  • 11.6k
0 votes
0 answers
39 views

gitignore files with a particular hash but git add if hash changes

I don't want to commit or stage files that matches particular hash value but if I edit those files later it should be staged when I do git add. Any suggestions? Basically there are files that are ...
Porcupine's user avatar
  • 6,465
0 votes
1 answer
34 views

Delete and stop tracking folders from client branch but keep them on main product branch

I've branch out client branch (C) from main product (P) branch which I am adding features as per request. The main product branch contains all folders/files for every client with the main product code....
ErrorAndTrial's user avatar
2 votes
1 answer
61 views

Gitignore all folders beginning with a period except those with a `.gitignore` file

Many tools that I use create hidden folders such as .mypy_cache, .ruff_cache, .ipynb_checkpoints, etc. Generally, I want to git-ignore such folders, as they often only contain cached data. However, if ...
Hyperplane's user avatar
  • 1,681
0 votes
0 answers
20 views

Cannot add files to .gitignore in React application repository [duplicate]

I am using VS code with the Git extensions to manage version control and push/pull commits to my repository. I am creating a React application that has a public folder, a node_modules folder, an src ...
gwydion93's user avatar
  • 1,903
0 votes
2 answers
98 views

Gitignore asterisk "*" and slashes

According to the gitignore documentation, an asterisk * matches anything except a slash. It's not clear to me how that actually works in practice. Consider the following structure for example: foo/ ...
Bertrand Bastien's user avatar
0 votes
3 answers
90 views

Ignore file extension except in a specific directory in `.gitignore` [closed]

In my repository, I have scripts that generate loads of .json files, that I want to ignore, so I have *.json in .gitignore. But I have one directory config containing .json files and I want those to ...
Jake Levi's user avatar
  • 1,680
1 vote
1 answer
31 views

MDriven Framework file Modlr.config - can it be ignored from git?

Using MDriven Framework, can we safely ignore modlr.config from git? It seems to be modified whenever I even just open the model editor, without changing anything. Does it contain anything that's ...
Kjell Rilbe's user avatar
  • 1,499
0 votes
2 answers
75 views

Match end of file name in .gitignore

In a git repo, I want to exclude a file named main but not a file named main.c. How would I do this? If I add this to the .gitignore file: main both files are excluded. How do I match a pattern at ...
D_00's user avatar
  • 1,497
0 votes
0 answers
36 views

A gitignore file doesn't seem to allow dot slashes for file paths

I have a git repository called Timeline and this is where my .gitignore file is located (at the root of Timeline). In Timeline I have my node_modules directory at: Timeline/timeline-react/node_modules....
Charmander71790's user avatar
0 votes
0 answers
72 views

With git, how to minimize pain when switching between branches with differing .gitignores?

I am in a position where I switch branches in a single repo regularly, working on my own projects, and reviewing collaborator’s code by running it. Often new code will generate intermediary files that ...
escapecharacter's user avatar
1 vote
0 answers
15 views

Git subtree/ + inter-related gitignore

I want to setup a git project with a nested repo. so far my attempts with gitignores or git subtree dont catch all I need. A) main repo B) nested repo (core theme) The nested repo contains a folder ...
codifier's user avatar
0 votes
0 answers
21 views

Problem with submitting nextjs application to github

enter image description hereWhy is this process (Compressing objects, Writing and Receiving) taking so long. What am I doing wrong and how can I make it go away? Added node_modules and .next to the ....
astafa98's user avatar
0 votes
1 answer
542 views

Should I add components.d.ts to gitignore?

components.d.ts is auto-generated by unplugin-vue-components when dev server starts. It often cause conflicts when merging PRs in the projects I have participated in. components.d.ts looks like: /* ...
typed-sigterm's user avatar
2 votes
0 answers
57 views

Should we gitignore `Package.realitycomposerpro/WorkspaceData` for Reality Composer Pro projects?

Should we add Package.realitycomposerpro/WorkspaceData/* to .gitignore for Reality Composer Pro projects? I see files with my computer name and other JSON files in here that are highly updated by just ...
mesqueeb's user avatar
  • 6,254
0 votes
0 answers
21 views

Can folders `Install` and `images/Install` be safely added to .gitignore for DNN website?

I've got a DNN website and there are folders Install and images/Install. Judging by their behavior it seems like they are autogenerated. So can I safely ignore them in git?
Constantine Ketskalo's user avatar
-1 votes
2 answers
116 views

My .gitignore file is NOT ignoring anything [closed]

Is there any particular valid reason as to why my .gitignore file is ignoring the fact that I have told this file to ignore all of my newly-created, previously-uncommitted files that I have included ...
JoJoJohan's user avatar
1 vote
0 answers
249 views

Expo gitignore ios and android folders

My generated info.plist has some identifiers such Google Login client ID. While this isn't a "secret", I don't want to commit this to a public git repo. Given the entire ios and android ...
DD.'s user avatar
  • 22k
1 vote
1 answer
78 views

Should I put Django venv directory in .gitignore?

In my book Python Crash Course 2nd edition it is recommended to put ll_env (venv directory) in .gitignore. It says, "We tell Git to ignore the entire ll_env directory, because we can re-create it ...
user avatar
0 votes
1 answer
38 views

How to synchronize changes from a source repo to a destination repo triggered from a push to the source main except some files

I want to synchronize changes from a source repository to a destination repository whenever there is a push to the main branch of the source repository. However, I do not want to sync changes to the ...
Ilias Machairas's user avatar
2 votes
0 answers
93 views

git: untracked files not being ignored [closed]

So, i'm doing a little project with rust and i would also like to use git in order to learn both in a more practical way. The problem started when i created gitignore, because in rust, both the "...
Matt2code's user avatar
-1 votes
1 answer
71 views

File is added to .gitignore but is still shown in "Working directory changes" [duplicate]

I'm working with files with a specific filename, something like: Site/Product Client/Modules/Product.Customer.Client.dll (The words "Product" and "Customer" are replaced by ...
Dominique's user avatar
  • 17.3k
0 votes
1 answer
46 views

Unstaged files that were accidentally uploaded to GitHub before there was a gitignore file

My friends and I are working on a project in github but by mistake changes were pushed to master before a gitignore file was uploaded that indicates to ignore these files And when someone wants to ...
רחל's user avatar
  • 1
-1 votes
1 answer
56 views

Do I need to commit my .gitignore with paths containing spaces to see changes in my status?

I have a .gitignore which ignores all .docx files. I want to add an exception, BUT I just made multiples commits with modification to my .gitignore file and I still can't see my docx. The first thing ...
DeveCout's user avatar
-1 votes
2 answers
58 views

gitignore file inside a folder and want to exclude a folder outside that

I have my current repo setup like below project/ ├── .cicd ├── .github ├── .idea ├── .primer ├── airflow/ └── module/ └── .gitignore I have my .gitignore file inside module folder. Now, I want to ...
prisoner's user avatar
0 votes
0 answers
41 views

How to properly exclude specific files from .gitignore

I'm trying to get a .gitignore working in wordpress. I want to exclude the uploads files and the temporary plugin upgrade files, but not ignore the .htaccess and index.html static files in those ...
Scott Wood's user avatar
0 votes
0 answers
95 views

The file cannot be removed even though it is included in the .gitignore list

I have a Flutter project that initially did not have a .gitignore file. After adding the .gitignore file and cleaning up with the following commands: git rm -r --cached . git add . git commit -m "...
maulz's user avatar
  • 1
0 votes
0 answers
49 views

Excluding a directory from git version tracking but using it in a GitHub workflow

I'm a technical writer working with DITA XML and using it to publish to HTML. I keep my DITA XML in Git on GitHub, and manually use a workflow in GitHub to publish the resulting HTML to an Azure ...
Masu's user avatar
  • 9
0 votes
1 answer
41 views

Why is adding files to .gitignore deleting it in remote?

I am just playing around and trying to understand .gitnore and how it works. I noticed the previously tracked items, after adding to .gitignore are deleted in remote after pushing the commit. I have a ...
Nishant0823's user avatar
-1 votes
1 answer
48 views

.gitignore, difference between dir, dir/ and dir/* [duplicate]

In .gitignore what's the difference between dir dir/ dir/* ? As more real-life scenario, consider config instead of dir, when there are config-dirs and config-files
bolt's user avatar
  • 480
1 vote
2 answers
52 views

Gitignore in subfolder to ignore any file of any project level

I wanna have a general .gitignore, which will contain dirnames and filenames of any level of a project, but put it into a subfolder. For example, I wanna ignore folder "c", project structure:...
SZx's user avatar
  • 23
0 votes
0 answers
51 views

Git: Merge all files except specified ones

I have two git repositories, let's call them WidgetsParent and WidgetsChild for the purposes of this. WidgetsParent moves a lot quicker than WidgetsChild and, on a periodic basis, WidgetsChild needs ...
snakespan's user avatar
  • 1,211
0 votes
1 answer
48 views

git ignore classess not ignore in intellij idea

I am using IntelliJ IDEA but when I want commit it shows all class file. Here is the image; Here is the gitignore code... ELP.md target/ !.mvn/wrapper/maven-wrapper.jar !**/src/...
Enamul Haque's user avatar
  • 5,045
0 votes
0 answers
14 views

How to add exception to ignored common directories?

I'm excluding several paths from subdirectories in git, but sometimes I want certain files to be included. the project tree is . ├── D │   └── DukeNukem │   └── drive_c ├── W │   ├── ...
gcb's user avatar
  • 14.7k
1 vote
2 answers
69 views

.Gitignore Issue in laravel

I am trying to put session and logs directories into .gitignore file in my Laravel 10 project, but they are not ignored and are still tracked. I have tried to delete the folders and create them again, ...
Jamil Andaz's user avatar
2 votes
1 answer
56 views

Ignore all wordpress folder except my specific plugin

I'm working on a wordpress plugin as part of a larger project. The wordpress install sits in a wordpress folder, I want to ignore all of the wordpress install except the specific plugin that I'm ...
user21147044's user avatar
0 votes
0 answers
54 views

VS Code: .gitignore not working for excluding ".terraform/" folders

I am trying to exclude the terraform directories and files in VS Code, using the https://github.com/github/gitignore/blob/main/Terraform.gitignore template, however it does not seem to work,it tries ...
Norbert's user avatar
0 votes
1 answer
65 views

.gitignore not to ignore a certain file name in ignored subfolders

My project has many (currently 2) subfolders with name .vscode/ and I need my .gitignore to ignore that subfolders and all its files, excepting the one called launch.json My .gitignore is like this ....
Windgate's user avatar
  • 430
-1 votes
1 answer
130 views

.gitignore ignore any subfolder with name .vscode [closed]

I'm starting a repo with 1 development project and 1 testing project, so there are 2 different projects in the same repo, I'm working with Visual Studio Code. I need to specify in the .gitignore file ...
Windgate's user avatar
  • 430
0 votes
0 answers
29 views

GitBash Terminal Crashes When Adding Files, Including .gitignore, to Staging Area

I'm working on a Node.js project and encountering an issue while pushing to my GitHub repository. I've added the node_modules folder to the .gitignore file to exclude it from Git, but when I use the ...
JOSEPH BHARATH's user avatar
0 votes
1 answer
603 views

Which files and directories should be ignored in a Flutter project?

I have to create a new Flutter project from scratch and pushing it to GitGub. So, as first step I've created a new git repository through: git init I've copied the .gitignore from Flutter GitHub repo,...
federico D'Armini's user avatar
1 vote
1 answer
313 views

git gives hint to "dispable or modify the sparsity rules" when "worktree is not sparse"

I rarely use a sparse checkout (more likely to use a shallow clone). I almost always use a .gitignore file. That file is sometimes configured to ignore directories or files that are already part of ...
Kevin's user avatar
  • 2,661
0 votes
0 answers
138 views

Unable to gitignore .nx/cache from my Angular project after migrating NX

I am in the process of migrating Angular for a project I am working on. I need to migrate NX in the process. On one of the recent NX updates (I believe it was v16 -> v17), they added in .nx/cache, ...
IMeyers20's user avatar
  • 191

1
2 3 4 5
61