0
0
Gitdevops~30 mins

Repository (committed history) in Git - Mini Project: Build & Apply

Choose your learning style9 modes available
Explore Git Repository Committed History
📖 Scenario: You are working on a small project and want to understand the history of changes made to your files. Git keeps track of all changes in a repository as commits. Each commit has a unique ID and a message describing the change.Learning how to view this committed history helps you see what was changed, when, and by whom.
🎯 Goal: Learn how to check the committed history of a Git repository using basic Git commands.
📋 What You'll Learn
Use the git log command to view commit history
Use the git log --oneline command for a concise view
Understand commit IDs and messages
Practice reading commit history output
💡 Why This Matters
🌍 Real World
Developers use Git commit history to track changes, find bugs, and understand project progress.
💼 Career
Knowing how to read Git history is essential for collaboration and code review in software development jobs.
Progress0 / 4 steps
1
Initialize a Git repository
Run git init in your project folder to create a new Git repository.
Git
Need a hint?

Type git init exactly to start tracking your project with Git.

2
Create and commit a file
Create a file named README.md with the text Initial commit. Then run git add README.md and git commit -m "Add README file" to save this change.
Git
Need a hint?

Use echo to create the file, then add and commit it with the exact commands.

3
View the full commit history
Run git log to see the detailed commit history including commit ID, author, date, and message.
Git
Need a hint?

Simply type git log to see the full commit details.

4
View a concise commit history
Run git log --oneline to see a short summary of commits with just the commit ID and message.
Git
Need a hint?

Use git log --oneline to get a brief view of your commit history.