With Git installed and configured, you are ready to put it to practical use by creating your first repository. This chapter introduces the fundamental commands for managing a local project.
You will learn how to:
git init
.git add
.git commit
, including how to write effective commit messages.git status
.git log
..gitignore
file.By the end of this chapter, you will be able to create a basic Git repository, track changes to your files, and view the history of those changes.
2.1 Creating a New Repository with git init
2.2 The Git Workflow: Modified, Staged, Committed
2.3 Checking the Status of Your Files (git status)
2.4 Adding Files to the Staging Area (git add)
2.5 Committing Changes (git commit)
2.6 Writing Good Commit Messages
2.7 Viewing Commit History (git log)
2.8 Understanding .gitignore Files
2.9 Hands-on Practical: Initialize and Make First Commit
© 2025 ApX Machine Learning