0

Windows 10 (64 bit), Emacs 25.1.

I want to use command helm-grep-do-git-grep to find text in many files. But when I start (in git folder) this command I get error:

git --no-pager grep...

Here screenshot:enter image description here

Community
  • 1
  • 1
Alexei
  • 14,350
  • 37
  • 121
  • 240
  • What happens when you run the git command in a terminal? You should probably be in the same directory as you are in the `dired` buffer. I'm guessing there are actually no results, which would mean it's working correctly. – jpkotta May 15 '17 at 17:26
  • what git command I need to run in this folder? – Alexei May 16 '17 at 07:55
  • the one in the git grep buffer in your screenshot. – jpkotta May 16 '17 at 17:10
  • From terminal I run command: git --no-pager grep -niH --color=always --exclude-standard --no-index --full-name -e "https" -- d:/Personal/TODO/ But no result. Nothing happen. – Alexei May 16 '17 at 17:24
  • Well there you go: the git command isn't returning anything. Is the string "https" actually in any of the files? If the string is in some files, are they being ignored with .gitignore? This is clearly not an Emacs or helm problem. – jpkotta May 16 '17 at 17:29
  • In my 2 org files I has text "TODO". I try this command from terminal but nothing happen: git --no-pager grep -niH --color=always --exclude-standard --no-index --full-name -e "TODO" -- d:/Personal/TODO/ – Alexei May 16 '17 at 17:47
  • It has something to do with your git repo, git config, Windows, etc. The command works for me. – jpkotta May 16 '17 at 19:13
  • I fix the problem. You was right. The problem was in git client. Before I use "cygwin/bin/git.exe" - and it's not work for my command. So I download Git client from here https://git-scm.com/download/win - and now my command work from Emacs and from terminal. Thank you. – Alexei May 17 '17 at 12:02

0 Answers0