ClientServer/Server/pull-latest.sh

11 lines
189 B
Bash
Raw Normal View History

2025-09-06 17:17:39 +04:00
#!/bin/bash
cd /root/Server
echo "🔁 Resetting repo..."
git reset --hard
git clean -fdx
echo "⬇️ Pulling latest from GitHub..."
GIT_SSH_COMMAND="ssh -i ~/.ssh/github_rsa" git pull