Git Installation & Setup for DevOps Engineers

🚀 Day 8 | #90DaysDevOpsChallenge 🚀 Today I learned and practiced Git installation, Git configuration, and GitHub setup using SSH 🐧💻 This is a must-have skill for DevOps, Cloud, and Software Engineers. 🧩 Git Installation & Verification 🔹 Installed Git using: sudo apt install git 🔹 Checked Git version: git --version 👉 Confirms Git is installed successfully ✅ 👤 Git User Configuration 🔹 Set global username & email: git config --global user.name "Your Name" git config --global user.email "your.email@example.com" 🔹 Verify configuration: git config --list git config --get user.name git config --get user.email 👉 This info is attached to every commit ✍️ 🔐 GitHub SSH Setup 🔹 Generated SSH key: ssh-keygen -t ed25519 -C "your.email@example.com" (Pressed Enter → Enter → Enter) 🔹 Copied public key: cat ~/.ssh/id_ed25519.pub 🔹 Added key to GitHub → Settings → SSH & GPG keys 🔹 Tested SSH connection: ssh -T git@github.com 👉 Confirms secure GitHub connection 🔐 📦 First GitHub Push (Hands-on) git init git add README.md git commit -m "first commit" git branch -M main git remote add origin git@github.com:alam-rijwan/90daysdevops-chalenges.git git push -u origin main ⚠️ Common Error Faced & Fixed ❌ Rejected – fetch first This happens when the remote repo already has changes. ✅ Solution: git pull origin main --rebase git add . git commit -m "your commit message" git push -u origin main 👉 Issue resolved successfully 🎯 💡 Key Takeaway: Git + GitHub with SSH provides secure version control, smooth collaboration, and is the foundation of CI/CD pipelines 🚀 On to Day 9 💪 #Day8 #Git #GitHub #DevOpsJourney #LearningInPublic #VersionControl #SSH #Linux #CloudComputing #90DaysDevOpsChallenge

To view or add a comment, sign in

Explore content categories