Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: How to signal end of rev-list --stdin input on Windows

I'm using git rev-list --stdin from Windows command prompt. I'm entering -- followed by some paths, one on each line.

How do I signal to Git that I'm done entering the list of paths? I've tried Ctrl+Z, Ctrl+C, Ctrl+D but none seem to work as expected.

The documentation doesn't mention it: https://git-scm.com/docs/git-rev-list

I found this related question that helps for Unix, but doesn't seem to work on Windows: https://unix.stackexchange.com/questions/16333/how-to-signal-the-end-of-stdin-input

like image 251
Kirill Osenkov Avatar asked Dec 16 '25 18:12

Kirill Osenkov


1 Answers

You can signal the EOF from keyboard in Windows by pressing Ctrl+Z, followed by an Enter key. I have used it when I input files from keyboard to a program, and it works for me. I think it will also work here.

like image 101
Pranav Chaudhary Avatar answered Dec 19 '25 11:12

Pranav Chaudhary



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!