Git Config, Amend & .gitignore Essentials for Clean Version History

🚀 Day 02/100 – Git Configuration, Amend & .gitignore Today I focused on key Git operations related to commit management and repository handling. 🔹 What I revised today: • Git configuration to set username and email for commits • Using git commit --amend to modify the latest commit (message, author, or changes) • Understanding the purpose of .gitignore to avoid tracking unwanted files 🔹 Hands-on I practiced: • git config user.name / user.email • git commit --amend -m "message" • git commit --amend --no-edit • Creating and using .gitignore file 💡 Key Takeaway: Proper configuration and controlling what gets committed helps in maintaining clean and meaningful version history. ⚡ Insight: Using .gitignore effectively prevents unnecessary files from being tracked and keeps the repository organized. Day 2 ✅ #DevOps #Git #100DaysOfDevOps #LearningInPublic

To view or add a comment, sign in

Explore content categories