Git/hacks: Difference between revisions
Add search hack |
|||
| Line 1: | Line 1: | ||
== Search == | |||
<code>git grep</code> only works on the current content of your working copy. To search through all revisions, you can use something like | |||
<source lang="bash"> | |||
git rev-list --all | ( while read revision; do git grep -F 'wgAWSCredentials' $revision; done; ) | |||
</source> | |||
== Ignore File Mode == | == Ignore File Mode == | ||
Sometimes you have to temporarily change file modes (or some script might alter your working directory). Anyway, to ignore file mode changes temporarily, you can just add <code>-c core.fileMode=false</code> to your command. E.g.: | Sometimes you have to temporarily change file modes (or some script might alter your working directory). Anyway, to ignore file mode changes temporarily, you can just add <code>-c core.fileMode=false</code> to your command. E.g.: | ||
| Line 279: | Line 285: | ||
[[Category:Development]] | [[Category:Development]] | ||
[[Category:Version Control]] | |||