1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-02 13:52:46 +02:00

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 <kamranahmed.se@gmail.com>
This commit is contained in:
Vedansh ✨
2024-08-17 16:24:05 +05:30
committed by GitHub
parent 7643cca066
commit 4951984ff1

View File

@@ -4,12 +4,13 @@
Here are some common git log options: Here are some common git log options:
- -2: Only show the last two commits. - `-2`: Only show the last two commits.
- --all: Show all branches in the repository. - `--all`: Show all branches in the repository.
- --graph: Display the commit history as a graph. - `--graph`: Display the commit history as a graph.
- --no-color: Disable colorized output. - `--pretty`: Enable clean colorized output.
- --stat: Show a statistical summary of changes. - `--no-color`: Disable colorized output.
- **-S`: Only show commits with modified files. - `--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. 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: Visit the following resources to learn more:
- [@official@Git Log](https://git-scm.com/docs/git-log) - [@official@Git Log](https://git-scm.com/docs/git-log)
- [@article@Git Log Cheatsheet](https://elijahmanor.com/blog/git-log) - [@article@Git Log Cheatsheet](https://elijahmanor.com/blog/git-log)