Git – Temporarily ignore trivial changes to files

In my use case (developing using an edited config file on my personal machine, running on another machine with the unchanged config), this was the solution for me: start ignoring changes to a file: git update-index –assume-unchanged path/to/file keep tracking again: git update-index –no-assume-unchanged path/to/file

Can you “ignore” a file in Perforce?

As of version 2012.1, Perforce supports the P4IGNORE environment variable. I updated my answer to this question about ignoring directories with an explanation of how it works. Then I noticed this answer, which is now superfluous I guess. Assuming you have a client named “CLIENT”, a directory named “foo” (located at your project root), and … Read more

Git – Ignore files during merge

I got over this issue by using git merge command with the –no-commit option and then explicitly removed the staged file and ignore the changes to the file. E.g.: say I want to ignore any changes to myfile.txt I proceed as follows: git merge –no-ff –no-commit <merge-branch> git reset HEAD myfile.txt git checkout — myfile.txt … Read more

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

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 repo) Add a line defining the files to be filtered: *.rb filter=gitignore, i.e. run filter named gitignore on all *.rb files Define the gitignore filter in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)