ignore

How can I delete all unversioned/ignored files/folders in my working copy?

我怕爱的太早我们不能终老 提交于 2019-11-26 23:29:32
If I have a working copy of a Subversion repository, is there a way to delete all unversioned or ignored files in that working copy with a single command or tool? Essentially, I'm looking for the SVN analogue to git clean . Either a command line or GUI solution (for TortoiseSVN) would be acceptable. Stefan Using TortoiseSVN: right-click on working copy folder, while holding the shift-key down choose "delete unversioned items" svn status --no-ignore | grep '^[I?]' | cut -c 9- | while IFS= read -r f; do rm -rf "$f"; done This has the following features: Both ignored and untracked files are

Which files are ignored as input by mapper?

一个人想着一个人 提交于 2019-11-26 21:37:45
问题 I'm chaining multiple MapReduce jobs and want to pass along/store some meta information (e.g. configuration or name of original input) with the results. At least the file "_SUCCESS" and also anything in the directory "_logs" seams to be ignored. Are there any filename patterns which are by default ignored by the InputReader ? Or is this just a fixed limited list? 回答1: The FileInputFormat uses the following hiddenFileFilter by default: private static final PathFilter hiddenFileFilter = new

How to remove files that are listed in the .gitignore but still on the repository?

徘徊边缘 提交于 2019-11-26 21:12:53
I have some files in my repository that should be ignored, i added them to the .gitignore but, of course, they are not removed from my repository. So my question is, is there a magic command or script using filter-branch that can rewrite my history and remove all these files easily? Or simply a command that will create a commit that will remove them ? You can remove them from the repository manually: git rm --cached file1 file2 dir/file3 Or, if you have a lot of files: git rm --cached `git ls-files -i --exclude-from=.gitignore` But this doesn't seem to work in Git Bash on Windows. It produces

Mercurial ignore file

依然范特西╮ 提交于 2019-11-26 18:58:15
问题 I'm trying to get Mercurial to ignore a configuration file, but I'm failing to get it working. I have created a repository on my server with hg init and cloned that repository to my computer. I then want to be able to edit the configurationj file but not commit those changes back to the server. I have tried creating a .hgignore in the root of my clone, but Mercurial flags the file with a ? and whether I commit it or not it still continues to log my configuration changes. Am I creating the

How to tell git to ignore individual lines, i.e. gitignore for specific lines of code [duplicate]

放肆的年华 提交于 2019-11-26 14:53:15
This question already has an answer here: Can git ignore a specific line? 8 answers .gitignore can ignore whole files, but is there a way to ignore specific lines of code while coding? I frequently and repeatedly add the same debug lines in a project, only to have to remember to remove them before committing. I'd like to just keep the lines in the code and have git disregard them. Kache This is how you can kind of do it with git filters : Create/Open gitattributes file: <project root>/.gitattributes (will be committed into repo) OR <project root>/.git/info/attributes (won't be committed into

Subversion: ignore modifications to a file locally on one client only

点点圈 提交于 2019-11-26 12:57:53
问题 Is it possible to ignore changes to a file in subversion locally on one client only, without propagating the ignore to the whole repository? The particular problem I\'m dealing with is that I\'ve checked out a project and modified a bunch of files including the Makefile, which is already part of the repository. Now the environment I\'m working on is different from the rest of the group, and I want the changes to the Makefiles to remain local on my machine and not be committed. However, I don\

How to remove files that are listed in the .gitignore but still on the repository?

我们两清 提交于 2019-11-26 12:33:37
问题 I have some files in my repository that should be ignored, i added them to the .gitignore but, of course, they are not removed from my repository. So my question is, is there a magic command or script using filter-branch that can rewrite my history and remove all these files easily? Or simply a command that will create a commit that will remove them ? 回答1: You can remove them from the repository manually: git rm --cached file1 file2 dir/file3 Or, if you have a lot of files: git rm --cached

Ignore new commits for git submodule

自作多情 提交于 2019-11-26 11:59:43
问题 Background Using Git 1.8.1.1 on Linux. The repository looks as follows: master book The submodule was created as follows: $ cd /path/to/master $ git submodule add https://user@bitbucket.org/user/repo.git book The book submodule is clean: $ cd /path/to/master/book/ $ git status # On branch master nothing to commit, working directory clean Problem The master, on the other hand, shows there are \"new commits\" for the book submodule: $ cd /path/to/master/ $ git status # On branch master #

How to omit Get only properties in servicestack json serializer?

只愿长相守 提交于 2019-11-26 10:36:21
I have an object which I am de-serializing using ToJson<>() method from ServiceStack.Text namespace. How to omit all the GET only propeties during serialization? Is there any attribute like [Ignore] or something that I can decorate my properties with, so that they can be omitted? Thanks ServiceStack's Text serializers follows .NET's DataContract serializer behavior, which means you can ignore data members by using the opt-out [IgnoreDataMember] attribute public class Poco { public int Id { get; set; } public string Name { get; set; } [IgnoreDataMember] public string IsIgnored { get; set; } }

Can you “ignore” a file in Perforce?

喜欢而已 提交于 2019-11-26 10:19:44
问题 I sometimes use the feature \'Reconcile Offline Work...\' found in Perforce\'s P4V IDE to sync up any files that I have been working on while disconnected from the P4 depot. It launches another window that performs a \'Folder Diff\'. I have files I never want to check in to source control (like ones found in bin folder such as DLLs, code generated output, etc.) Is there a way to filter those files/folders out from appearing as \"new\" that might be added. They tend to clutter up the list of