You’ll just need to disable the pager.
git --no-pager log > log.txt
If you want to format it to look nicer, you can use parameters of git log.
More Related Contents:
- HEAD and ORIG_HEAD in Git
- How to revert a merge commit that’s already pushed to remote branch?
- How to convert a normal Git repository to a bare one?
- Rollback to an old Git commit in a public repo
- Git push results in “Authentication Failed”
- Add line break to ‘git commit -m’ from the command line
- Resolving a Git conflict with binary files
- Move branch pointer to different commit without checkout
- How do I tell git-svn about a remote branch created after I fetched the repo?
- Is there a way to configure git repository to reject ‘git push –force’?
- Checking for a dirty index or untracked files with Git
- Hash collision in git
- Local executing hook after a git push?
- Cannot push Git to remote repository with http/https
- Git failed with a > fatal error. could not read Username for
- git rebase basics
- What does the `..` mean in git branch reference?
- Git keeps asking me for my ssh key passphrase
- How can I preview a merge in git?
- Git: Ignore tracked files
- How to list all tags that contain a commit?
- Unstage a deleted file in git
- fetch from origin with deleted remote branches?
- Are multiple `.gitignore`s frowned on?
- How to check for changes on remote (origin) Git repository
- How to know if there is a git rebase in progress?
- Highlight changed lines and changed bytes in each changed line
- Force “git status” to output color on the terminal (inside a script)
- remote rejected master -> master (pre-receive hook declined)
- Difference between Git and Nexus?