gitignore

git repository ignoring all .dlls

你说的曾经没有我的故事 提交于 2019-12-18 10:19:21
问题 Title says it all. I am trying to add my NuGet packages to the repository. Everything but the .dll files are being detected. The gitignore file contains no references to *.dll. The .dll files don't get recognized when located anywhere in the entire repository. info/exclude is also empty. I have also cloned the repository (file-system to file-system as opposed from remote to file-sysytem) with no luck. This issue also happens on two different computers. I could add the .dll files manually, but

Android studio - should the entire .idea directory be in git ignore?

随声附和 提交于 2019-12-18 09:58:34
问题 I saw a lot of examples for .gitignore files for AndroidStudio , some have .idea in them, and some don't. Is there a good reason not to add the entire .idea dir to .gitignore? If it should not be completely ignored, are there specific files inside .idea (such as .iml) that should be in .gitignore? 回答1: You can take a look at this page : IntelliJ doc about project configuration files In the "Directory-based format", a particular line is interesting : The .idea directory contains a set of

Should bower_components be gitignored?

☆樱花仙子☆ 提交于 2019-12-18 09:56:53
问题 Would it be good practice to keep only the bower.json file and gitignore the whole bower_components directory? 回答1: The official Bower page stated: N.B. If you aren't authoring a package that is intended to be consumed by others (e.g., you're building a web app), you should always check installed packages into source control. Make sure to check out the link in the quote, it discusses some pro and cons. The main pro it mentions is that checking them in ensures that your dependencies are always

Repo specific ignore files in git

▼魔方 西西 提交于 2019-12-18 05:15:33
问题 Is it possible to have repo specific .gitignore files? Eg: [origin] .gitignore: foo1.* foo2.* [another] .gitignore: bar1.* bar2.* The purpose behind this is that we deploy using git on to a managed cloud service and we'd like to keep dev files in version control but not push them to a repo. 回答1: Yes, you can put per repository ignore patterns in .git/info/exclude in each repository. (Note, this only affects what is ignored in each repository, it won't affect files that you actively place

Gitignore a file if file with different extension exists

筅森魡賤 提交于 2019-12-18 04:45:17
问题 In a project where for instance a parser is involved, some source code is the product of a program. For instance yacc generates - based on a .yy file - a source code file that implements the parser. Since small modifications in the .yy file can lead to large changes in the corresponding source code file after compilation and since the resulting source code is (almost) never altered after it is generated. Such source code files are perfect candidates for the .gitignore list. Now one can of

.DS_Store still appears in git status despite being in .gitignore

五迷三道 提交于 2019-12-18 03:32:34
问题 $ cat .gitignore # OSX */.DS_Store .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes Icon? ehthumbs.db Thumbs.db $ git status On branch develop Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Assets/Sprites/.DS_Store no changes added to commit (use "git add" and/or "git commit -a") There are more unrelated files in .gitignore and status message right now, but

.gitignore does not understand my folder wildcard on windows

左心房为你撑大大i 提交于 2019-12-18 03:11:59
问题 I'm encountering a weird issue with .gitignore on Windows. I want git to ignore all .exe files, except those in the Dependencies folder (and all subfolders). So I have: .gitignore : *.exe !/Dependencies/**/*.exe This, unfortunately, does not work. Meanwhile, this does: *.exe !/Dependencies/folder/subfolder/*.exe So I'm wondering, am I messing something up, or is this some kind of bug? I'm running msysgit on Windows (Windows 7 x64) version 1.6.5.1-preview20091022 Thanks in advance for any

.gitignore does not understand my folder wildcard on windows

♀尐吖头ヾ 提交于 2019-12-18 03:11:54
问题 I'm encountering a weird issue with .gitignore on Windows. I want git to ignore all .exe files, except those in the Dependencies folder (and all subfolders). So I have: .gitignore : *.exe !/Dependencies/**/*.exe This, unfortunately, does not work. Meanwhile, this does: *.exe !/Dependencies/folder/subfolder/*.exe So I'm wondering, am I messing something up, or is this some kind of bug? I'm running msysgit on Windows (Windows 7 x64) version 1.6.5.1-preview20091022 Thanks in advance for any

How could I ignore bin and obj folders from git repository?

余生长醉 提交于 2019-12-17 23:02:01
问题 I want to ignore bin and obj folders from my git repository. As I've found out, there is no easy way to do this in .gitignore. So, are there any other way? Using clean solution in Visual Studio? 回答1: I'm not sure why this doesn't work for you. In case it helps, here's a typical .gitignore file from one of my Visual Studio/git projects: *.suo *.user _ReSharper.* bin obj packages 回答2: simply making an entry in gitignore may not ignore files, you may need to commit it. I used the following

What is the 'standard' content of .gitignore for an iPhone (Xcode) project?

北城以北 提交于 2019-12-17 22:48:55
问题 What is considered the 'standard' content of .gitignore file for an iPhone (Xcode) project? PS: not sure if this needs to be a CW. 回答1: build/ .DS_Store **/*.pbxuser *.mode2v3 *.mode1v3 **/*.perspectivev* This is a good start. updated with Dave's suggestions. 回答2: You should also exclude xcworkspace and xcuserdata in xcode 4.2. So here is a complete list which one should ignore for iOS projects # Exclude the build directory build/* # Exclude temp nibs and swap files *~.nib *.swp # Exclude OS