Skip to content

Commit d1a8cd3

Browse files
authored
Added a few more git log commands
1 parent 268ad9b commit d1a8cd3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

version-control/command-line/tutorial.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ If we want to see a few stats for each commit we can use the --stat command.
8282
$ git log --stat
8383
```
8484

85+
Even can do graphs with the --graph command. It will display an ASCII graph of the branch and merge history beside the log output.
86+
We can use this command with the --oneline command to display the commits in an alternate format in one line.
87+
88+
```bash
89+
$ git log --graph --oneline
90+
```
91+
8592
### Transferring files from our local project repository to an online service
8693

8794
Before we can add files to a remote repository, we need to have created an account with a service that is hosting that repository. If you've not done that yet, head over to our tutorial: Get set-up with [Git and GitHub](../set-up/tutorial.html).

0 commit comments

Comments
 (0)