ignore

Mercurial ignore file

两盒软妹~` 提交于 2019-11-27 17:16:52
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 .hgignore file in the wrong place, does this file need to be commited? Does it need to be created before I

“ignore” in Bower's bower.json?

荒凉一梦 提交于 2019-11-27 17:04:42
问题 Bower's website describes the ignore key in bower.json: ignore [array]: An array of paths not needed in production that you want Bower to ignore when installing your package. Does this mean that it's ignoring paths in installed components, or in your package? Or something else? I was confused by this. 回答1: TL;DR: ignore only works within the scope of packages being installed, ignoring matching patterns. Somewhat longer answer: Bower will ignore all files matching the patterns specified in the

Ignoring Eclipse project files in SVN project

随声附和 提交于 2019-11-27 10:41:47
问题 I have a PHP project set up in Eclipse with SVN support. Now, Eclipse adds its project files .buildpath and .project to the project and Subclipse wants to add it to the repository. Now I could just use svn:ignore to let SVN ignore the files, but that's not an option for various reasons. So, is there a way to make Eclipse and Subclipse ignore the files (which it should anyway)? 回答1: Preferences > Team > Ignored Resources 回答2: Can you use global-ignores ? If yes, customize it in your config

git ignore vim temporary files

a 夏天 提交于 2019-11-27 08:57:41
问题 What is the correct way to make git ignore temporary files produced by vim in all directories (either globally across the system or locally for a single project)? 回答1: Vim temporary files end with ~ so you can add to the file .gitignore the line *~ Vim also creates swap files that have the swp and swo extensions. to remove those use the lines: *.swp *.swo This will ignore all the vim temporary files in a single project If you want to do it globally, you can create a .gitignore file in your

Ignore new commits for git submodule

寵の児 提交于 2019-11-27 06:26:28
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 # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git

Why diff with ignore matching lines doesn't work as expected?

穿精又带淫゛_ 提交于 2019-11-27 05:58:09
问题 I have the following files: file1.txt ################################################### Dump stat Title information for 'ssummary' view ################################################### Tab=> 'Instance' Title=> {text {Total instances: 7831}} Tab=> 'Device' Title=> {text {Total spice devices: 256}} Tab=> 'Memory' Title=> {text {Total memory allocated: 962192 kB}} Tab=> 'Cpu' Title=> {text {Total cumulative CPU time: 9030 ms}} file2.txt ###################################################

git, don't show me *.pyc in the list of untracked files!

邮差的信 提交于 2019-11-27 05:02:47
问题 When doing: >git status It shows a big list of .pyc files under "untracked files". I don't want it to show these, as it adds noise. In other words, how do I make git ignore .pyc files all the time and for all projects? EDIT I'm not asking for a way to spread my ignored files to other people, I really just mean "for all projects", meaning I don't want to configure each new project to ignore .pyc files. UPDATE I should add that I'm working on windows, and my git is msysgit Patterns which a user

Can you “ignore” a file in Perforce?

你。 提交于 2019-11-27 02:59:52
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 files that I am actually interested in. Does P4 have the equivalent of Subversion's 'ignore file' feature?

Git - Ignore files during merge

半腔热情 提交于 2019-11-27 02:48:30
I have a repo called myrepo on the remote beanstalk server. I cloned it to my local machine. Created two additional branches: staging and dev . Pushed these branches to remote as well. Now: local remote server -------------------------------------------------------- master ==> Pushes to `master` ==> deployed to `prod` staging ==> Pushes to `staging` ==> deployed to `staging` dev ==> Pushes to `dev` ==> deployed to `dev` I have a file called config.xml which is different on each branch. I want to ignore this file only during merges. But I want this to be included when I checkout or commit from

SQLAlchemy INSERT IGNORE

ⅰ亾dé卋堺 提交于 2019-11-27 01:53:09
问题 How can I insert multiple data records into table ignoring duplicates. I am using SQLAlchemy. Thank you! 回答1: prefix_with("TEXT") adds arbitrary text between INSERT and the rest of the SQL. execute() accepts a list of dictionaries with the records you would like to insert or a single dictionary if you only want to insert a single record. The SQLite syntax for the behavior you're looking for: inserter = table_object.insert().prefix_with("OR REPLACE") inserter.execute([{'column1':'value1'}, {