Git Basic Operations
This chapter introduces the basic Git commands, which are the most frequently used commands in daily Git usage. Mastering these is the foundation of using Git.
File Status Management
Check Repository Status
Status output explanation:
Add Files to Staging Area
Practical Example
Commit Operations
Basic Commit
Commit Message Best Practices
Modify Commit
Commit Operation Example
View Changes
View Working Directory Changes
Interpreting Diff Output
Explanation:
---represents old file+++represents new file@@ -1,3 +1,4 @@represents line number range of changes