git-grep Questions

3

I want to git grep the files which has two pre-specified words (if both exist, i.e. ANDing), assume these two words are word1 and word2 I tried git grep -e 'word1' --and -e 'word2' And also I t...
Careless asked 18/5, 2016 at 15:42

2

Solved

I'd like to be able to use git grep to do a regular expression search through: the current commit a given commit a list of commits a range of commits a given commit all the way back to the parent ...
Averir asked 3/10, 2022 at 1:1

2

Solved

I'm trying to grep all line breaks after some binary operators in a project using git bash on a Windows machine. Tried the following commands which did not work: $ git grep "[+-*\|%]\ *\n" fatal:...
Gschu asked 21/1, 2017 at 8:21

3

Solved

I know how to run gblame inside a file. I know how to grep a content inside all files in a directory. I'd like to see gblame of particular lines around that one that contains a content. Example: ...
Domicile asked 25/2, 2015 at 16:17
1

© 2022 - 2024 — McMap. All rights reserved.