Store git fetch output in a txt file -


i want store output of command in text file , attempt:

git fetch -v --dry-run >test.txt 

all happens continues write console , creates empty txt file. on high level, writing batch file determine if there changes update local copy of repository.

the output written stderr, not stdout. have add 2>&1 command line.


Comments