- Check if directory is a git repository before proceeding - Add fallback for git switch (use checkout if switch fails) - Handle offline/no-origin scenarios gracefully - Use local HEAD instead of origin/main for comparison - Add error handling for push operations - Continue backup locally if remote push fails |
||
|---|---|---|
| .. | ||
| backup-main.sh | ||
| setup-husky.sh | ||