diff --git a/verify-git-setup.sh b/verify-git-setup.sh new file mode 100755 index 0000000..4caba6a --- /dev/null +++ b/verify-git-setup.sh @@ -0,0 +1,71 @@ +#!/bin/bash +# Git Setup Verification Script for ScriptsManager +# Run this script to verify your Git configuration is correct + +echo "🔍 Git Configuration Verification" +echo "==================================" +echo + +# Check Git version +echo "1. Git Version:" +git --version +echo + +# Check user configuration +echo "2. User Configuration:" +echo " Name: $(git config user.name)" +echo " Email: $(git config user.email)" +echo + +# Check remote configuration +echo "3. Remote Configuration:" +git remote -v +echo + +# Check credential helper +echo "4. Credential Helper:" +git config credential.helper +echo + +# Check repository status +echo "5. Repository Status:" +git status --porcelain +if [ $? -eq 0 ]; then + echo " ✅ Repository is clean" +else + echo " ⚠️ Repository has uncommitted changes" +fi +echo + +# Test connectivity +echo "6. Testing Connectivity:" +git ls-remote origin > /dev/null 2>&1 +if [ $? -eq 0 ]; then + echo " ✅ Can connect to remote repository" +else + echo " ❌ Cannot connect to remote repository" + echo " Check your credentials and network connection" +fi +echo + +# Summary +echo "7. Summary:" +if git config user.name > /dev/null && git config user.email > /dev/null; then + echo " ✅ User configuration is set" +else + echo " ❌ User configuration is missing" + echo " Run: git config user.name 'Your Name'" + echo " Run: git config user.email 'your.email@domain.com'" +fi + +if git config credential.helper > /dev/null; then + echo " ✅ Credential helper is configured" +else + echo " ❌ Credential helper is not configured" + echo " Run: git config credential.helper store" +fi + +echo +echo "🎉 Verification complete!" +echo +echo "For Windows development setup, see: WINDOWS-DEVELOPMENT-GUIDE.md" \ No newline at end of file