I'm trying to use the following Java syntax to execute a Git blame command:
Process process = Runtime.getRuntime().exec("/usr/bin/git blame https://github.com/git/git/alloc.c > TestGit.txt");
But, when I run the code in Java, it doesn't give any result. And, when I tried to execute it in the Terminal, it just creates an empty "TestGit.txt" file, and I got the error: fatal: Not a git repository (or any of the parent directories): .git.