-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush_to_github.ps1
More file actions
68 lines (58 loc) · 2.52 KB
/
Copy pathpush_to_github.ps1
File metadata and controls
68 lines (58 loc) · 2.52 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# ============================================================
# JARVIS — Push to GitHub (Double-click to run)
# ============================================================
$ErrorActionPreference = "Stop"
Set-Location $PSScriptRoot
Write-Host "========================================" -ForegroundColor Cyan
Write-Host " JARVIS — Push to GitHub" -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
# --- Step 1: Git config ---
Write-Host "[1/4] Configuring git..." -ForegroundColor Yellow
git config user.email "dev@jarvis.dev"
git config user.name "JARVIS"
Write-Host " Git user configured." -ForegroundColor Green
# --- Step 2: Commit ---
Write-Host "[2/4] Creating commit..." -ForegroundColor Yellow
git commit -m @"
Initial commit: JARVIS — Robust Robotic Grasping via Multi-Modal BC and RL
- CNN + VGG16 cup localization with UR5 kinematics (CoppeliaSim)
- Multi-Modal Behavior Cloning with depth degradation + Canny edge priors (ManiSkill)
- PPO + Curriculum Learning for FR5 pick-and-place (PyBullet)
- Pip-installable maniskill_bc package with 12 unit tests
- GitHub Actions CI (Python 3.10/3.11)
- Bilingual README (EN/ZH)
"@
if ($LASTEXITCODE -ne 0) {
Write-Host " Commit failed! Check git config." -ForegroundColor Red
Read-Host "Press Enter to exit"
exit 1
}
Write-Host " Commit created." -ForegroundColor Green
# --- Step 3: Ask for GitHub username ---
$username = Read-Host "[3/4] Enter your GitHub username"
if ([string]::IsNullOrWhiteSpace($username)) {
Write-Host " Username required!" -ForegroundColor Red
Read-Host "Press Enter to exit"
exit 1
}
# --- Step 4: Push ---
Write-Host "[4/4] Pushing to GitHub..." -ForegroundColor Yellow
$repoUrl = "https://github.com/$username/JARVIS.git"
git remote remove origin 2>$null
git remote add origin $repoUrl
git branch -M main
git push -u origin main
if ($LASTEXITCODE -eq 0) {
Write-Host ""
Write-Host "========================================" -ForegroundColor Green
Write-Host " Done! View at: $repoUrl" -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Green
} else {
Write-Host ""
Write-Host "Push failed. Make sure:" -ForegroundColor Red
Write-Host " 1. You created the repo at: https://github.com/new" -ForegroundColor Red
Write-Host " 2. Repository name is exactly: JARVIS" -ForegroundColor Red
Write-Host " 3. You have authenticated with GitHub (gh auth login)" -ForegroundColor Red
}
Read-Host "Press Enter to exit"