I have tried several ways to save into a log file 'git fetch output' from terminal, through a bash file but without success, like,git fetch origin > output.logor even adding output.log in the front of the bash script where i have 'git fetch origin'. With command script is the only way i have to record all the info into a txt file through '>', but i would have to insert it manually and it stops when i try to use it inside of a bash file to let me introduce commands, dont know if there is a way to use a bash file to insert 'git fetch origin' command inside of script command. This is a sample of how the output in terminal is after i execute 'git fetch origin' command,Xserver$ git fetch origin > output.logremote: Counting objects: 14, done.remote: Compressing objects: 100% (10/10), done.remote: Total 14 (delta 5), reused 0 (delta 0)Unpacking objects: 100% (14/14), done.From https://bitbucket.org/x/test * [new branch]      branch1    -> origin/branch1 * [new branch]      branch2    -> origin/branch2 * [new branch]      branch3    -> origin/branch3 * [new branch]      branch4    -> origin/branch4 * [new branch]      master     -> origin/masterIs there a way to save this output to a txt file?
Save into file git fetch terminal output
bash;scripting;git
Looks like git prints the output to stderr, so you should use >&.Example: git fetch -v >& test.txt