⚙️ دستورات مهم Git
🛠️ پیکربندی اولیه
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
📁 شروع پروژه
git init
git clone <url>
📝 کار با فایلها
git status
git add .
git commit -m "پیام کامیت"
📜 مشاهده تاریخچه
git log
git diff
git show <commit>
🧪 مدیریت شاخهها
git branch
git checkout -b new-branch
git merge branch-name
git branch -d branch-name
🌐 ارتباط با ریموت
git remote add origin <url>
git push -u origin main
git pull
♻️ بازگشت به نسخه قبلی
git fetch
git reset --hard <commit>
git revert <commit>
🧹 مخفیسازی تغییرات موقت
git stash
git stash list
git stash apply