Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
74 views

When you inherit a code base where gitignore has not been used then the first thing you want to do is add a standard gitignore file like this one Standard Visual Studio gitignore file for example. But ...
Sigmundur's user avatar
  • 949
1 vote
1 answer
989 views

This has probably been asked before but I couldn't find it. Switch from the main branch to the newfeature branch. Create a file feature.log, add it to .gitignore, and commit. Switch back to the main ...
ki9's user avatar
  • 5,751
0 votes
1 answer
159 views

I would like to get the all existing files ignored by git repository or in my local also if it is possible and explaining the command I have tried this commands but not working. git ls-files --...
Yassin Marmoud's user avatar
2 votes
1 answer
121 views

I have a curious case with git clean -X. I want to delete all ignored files in a clone, except the .vs folder (which is ignored but should not be deleted). This works with git clean -Xnd -e !.vs - ...
bers's user avatar
  • 6,371
1 vote
0 answers
118 views

I have a file in my repo that contains sensitive information relevant to each dev. I want each of my colleagues to have this file when they pull down my repo and update it with their info, but not be ...
MeltingDog's user avatar
  • 15.8k
1 vote
2 answers
96 views

Suppose you have the following folder structure: a ├─ b │ ├─ b1.txt │ └─ b2.txt ├─ a1.txt └─ a2.txt .gitignore How do you tell Git to ignore a1.txt, a2.txt and all other files directly in the &...
Squiddy's user avatar
  • 37
1 vote
1 answer
97 views

I'm using git 2.38.1. I need to clone the project from remote, edit some docker config files and maintains that changes only locally also while changing branches. I tried: .git/info/exclude assume-...
user2342558's user avatar
  • 6,838
1 vote
1 answer
86 views

I am working on an angular project and mistakenly commits the environment files that have some apikeys on it. It has been after a couple of commits that I noticed that I accidentally committed the env ...
John Fred Fadrigalan's user avatar
0 votes
2 answers
160 views

My git repository has a nested repository that I want to ignore: my_repo/ main.py test_data/ .git/ test_file.txt .gitignore In the .gitignore file, I tried adding the following: ...
OLEGSHA's user avatar
  • 738
-2 votes
2 answers
63 views

I unchecked in the file explorer the option for Hide extensions for known file types then in the folder itself i have a text file name Unity.gitignore.txt , the file was type gitignore i downloaded ...
Daniel Lip's user avatar
  • 11.5k
2 votes
1 answer
78 views

I would like to have lines in my .gitignore file that ignore an entire directory and its subdirectories, aside from any files (and their folder structure) that end .pdf At the moment i use; outputs/* !...
Sam's user avatar
  • 1,522
0 votes
1 answer
166 views

I often hear that we should always make local backups to remote repositories for archiving or disaster recovery purposes. I don't know if it is just me that's doing things differently/incorrectly. ...
user2526586's user avatar
  • 1,344
1 vote
1 answer
151 views

How to reliably convert a .gitignore file into a list of pathspec strings that can be passed to individual git commands? I want to have a javascript function that can take any .gitignore file as input,...
user30020824's user avatar
1 vote
1 answer
78 views

Given that gitignore use Glob pattern instead of regular expression The official guide tells that an asterisk * matches anything except a slash / I am wondering if an asterisk * can match just ...
Eason's user avatar
  • 171
0 votes
2 answers
121 views

I want to remove any files or directories that match the following patterns: **/.* **/__* I tried the following commands: find . -path './.git' -prune -o -name '.*' ! -name '.' -exec git rm --cached ...
Aicody's user avatar
  • 1
0 votes
1 answer
123 views

I want to make git ignore all files except *.c, *.cpp and *.py. I tried this: * !*.c !*.cpp !*.py but this didn't work; it ignored even the *.c, *cpp and *.py files. git status result before adding ...
Cinverse's user avatar
  • 333
-1 votes
2 answers
129 views

I have a GitHub repository to sync my projects across my local machine and a few clusters I can access. There are a few different files that I'd like hosted on my cluster directories that I do not ...
David G.'s user avatar
  • 200
1 vote
0 answers
225 views

This file [ProjectRoot]/.idea/caches/deviceStreaming.xml doesn't get ignored by git-VersionControlSystem when I add the ".idea" line to ".gitignore" Also, the file "...
A.G.'s user avatar
  • 2,277
-1 votes
1 answer
191 views

When working on public projects from GitHub using VS Code sometimes changes keep showing up in the Source Control panel that I'm not interesting in seeing. But I don't want to change .gitignore ...
hippietrail's user avatar
  • 17.4k
1 vote
1 answer
191 views

How can plugin builds in Shopware 6.6+ be excluded from Git? I am speaking of storefront- and administration builds. These have dynamic paths under custom/plugins. This is a bit annoying in the ...
Chris's user avatar
  • 192
0 votes
1 answer
446 views

I'm a new software developer still in my instructional phase. I just created my first React project using npm create vite@latest. I'm wondering what files I would commit to my repo, and which files ...
Nathan's user avatar
  • 1
2 votes
2 answers
287 views

I picked up an external project, which I will be developing from now on. As a failsafe measure, I made 2 branches: One without a .gitignore, so as to not lose untracked files, called gitignoreless. ...
Andrea Bardelli's user avatar
2 votes
1 answer
122 views

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
  • 353
0 votes
2 answers
53 views

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
  • 36.7k
0 votes
0 answers
37 views

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
1 vote
1 answer
120 views

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
  • 81
-1 votes
2 answers
182 views

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
769 views

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.8k
0 votes
1 answer
45 views

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
126 views

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,730
0 votes
0 answers
20 views

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,943
0 votes
2 answers
338 views

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
209 views

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,980
1 vote
1 answer
52 views

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,623
0 votes
2 answers
156 views

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,569
0 votes
0 answers
79 views

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
35 views

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
5 votes
2 answers
2k views

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
136 views

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,494
-1 votes
2 answers
126 views

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
393 views

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
  • 22.1k
1 vote
1 answer
341 views

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
98 views

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
150 views

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
84 views

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.6k
0 votes
1 answer
52 views

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
60 views

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
69 views

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
53 views

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
137 views

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
  • 11

1
2 3 4 5
61