opinion-summarizer / setup_git_auth.sh
Anshrathore01's picture
Add complete deployment setup for Hugging Face Spaces
db1233f
raw
history blame contribute delete
863 Bytes
#!/bin/bash
# Setup git authentication for Hugging Face Spaces
echo "πŸ” Setting up Git authentication for Hugging Face"
echo ""
# Check if git credential helper is configured
if ! git config --global credential.helper | grep -q "store"; then
echo "πŸ“ Configuring git credential helper..."
git config --global credential.helper store
echo "βœ… Credential helper configured"
echo ""
fi
echo "To authenticate, you'll need to:"
echo ""
echo "1. Get your Hugging Face token from:"
echo " https://huggingface.co/settings/tokens"
echo ""
echo "2. When you push, git will ask for credentials:"
echo " Username: Anshrathore01"
echo " Password: [paste your HF token here]"
echo ""
echo "3. Or set it up now by running:"
echo " echo 'https://Anshrathore01:YOUR_TOKEN@huggingface.co' > ~/.git-credentials"
echo ""
echo "Then run: ./deploy.sh"