how to get out from git log code example Example 1: how to get out of git og Type q to exit git log Example 2: git log one line git log --oneline