From 4951984ff11c5fd5606922c327be62d11116866a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vedansh=20=E2=9C=A8?= Date: Sat, 17 Aug 2024 16:24:05 +0530 Subject: [PATCH] Update git log content (#6625) * Improve `git-log-options` * Update src/data/roadmaps/git-github/content/git-log-options@qFEonbCMLri8iA0yONwuf.md --------- Co-authored-by: Kamran Ahmed --- .../git-log-options@qFEonbCMLri8iA0yONwuf.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/data/roadmaps/git-github/content/git-log-options@qFEonbCMLri8iA0yONwuf.md b/src/data/roadmaps/git-github/content/git-log-options@qFEonbCMLri8iA0yONwuf.md index fd993165e..90ac1c45e 100644 --- a/src/data/roadmaps/git-github/content/git-log-options@qFEonbCMLri8iA0yONwuf.md +++ b/src/data/roadmaps/git-github/content/git-log-options@qFEonbCMLri8iA0yONwuf.md @@ -4,12 +4,13 @@ Here are some common git log options: -- -2: Only show the last two commits. -- --all: Show all branches in the repository. -- --graph: Display the commit history as a graph. -- --no-color: Disable colorized output. -- --stat: Show a statistical summary of changes. -- **-S`: Only show commits with modified files. +- `-2`: Only show the last two commits. +- `--all`: Show all branches in the repository. +- `--graph`: Display the commit history as a graph. +- `--pretty`: Enable clean colorized output. +- `--no-color`: Disable colorized output. +- `--stat`: Show a statistical summary of changes. +- `**-S`: Only show commits with modified files. You can combine these options to tailor your log output to suit your needs. @@ -18,4 +19,4 @@ For example, `git log -2 --graph` will display the last two commits in graph for Visit the following resources to learn more: - [@official@Git Log](https://git-scm.com/docs/git-log) -- [@article@Git Log Cheatsheet](https://elijahmanor.com/blog/git-log) \ No newline at end of file +- [@article@Git Log Cheatsheet](https://elijahmanor.com/blog/git-log)