forked from Kenneth-Xu11566/tiny-yolosam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_github.sh
More file actions
executable file
·54 lines (45 loc) · 1.43 KB
/
setup_github.sh
File metadata and controls
executable file
·54 lines (45 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Helper script to push this repository to GitHub
# Run after creating a new repository on GitHub
set -e
echo "========================================"
echo "GitHub Setup Helper"
echo "========================================"
echo ""
# Check if user has provided repo URL
if [ -z "$1" ]; then
echo "Usage: ./setup_github.sh <github-repo-url>"
echo ""
echo "Steps:"
echo " 1. Go to https://github.com/new"
echo " 2. Create a new repository (e.g., 'yolo-tinysam-hybrid')"
echo " 3. DO NOT initialize with README, .gitignore, or license"
echo " 4. Copy the repository URL (e.g., https://github.com/YourUsername/yolo-tinysam-hybrid.git)"
echo " 5. Run: ./setup_github.sh https://github.com/YourUsername/yolo-tinysam-hybrid.git"
echo ""
exit 1
fi
REPO_URL=$1
# Add remote
echo "Adding remote 'origin'..."
git remote add origin "$REPO_URL"
# Check current branch
BRANCH=$(git branch --show-current)
echo "Current branch: $BRANCH"
# Push to GitHub
echo ""
echo "Pushing to GitHub..."
git push -u origin "$BRANCH"
echo ""
echo "========================================"
echo "✅ Success! Repository pushed to GitHub"
echo "========================================"
echo ""
echo "View your repository at:"
echo " ${REPO_URL%.git}"
echo ""
echo "Next steps:"
echo " - Download model weights (see README.md)"
echo " - Set up issues/projects on GitHub"
echo " - Add collaborators if needed"
echo ""