The command to view the GIT commits in one line is- code example Example: git log one line git log --oneline