-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-github.bat
More file actions
64 lines (58 loc) · 2.18 KB
/
Copy pathsetup-github.bat
File metadata and controls
64 lines (58 loc) · 2.18 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
@echo off
chcp 65001 >nul 2>&1
echo ============================================
echo AgentRed - GitHub Push Script
echo Username: a805026135
echo ============================================
echo.
cd /d "%~dp0"
echo [1/4] Setting remote URL...
git remote set-url origin https://github.com/a805026135/agentred.git
echo Done: https://github.com/a805026135/agentred.git
echo.
echo [2/4] Verify commit...
git log --oneline -1
echo.
echo ============================================
echo NEXT STEPS - Follow these 3 steps:
echo ============================================
echo.
echo Step 1: Create a Personal Access Token (PAT)
echo -----------------------------------------------
echo 1. Open https://github.com/settings/tokens/new
echo 2. Note name: "AgentRed Push"
echo 3. Expiration: 30 days (or your preference)
echo 4. Select scopes: Check ONLY "repo" (full control)
echo 5. Click "Generate token"
echo 6. COPY the token (you will only see it once!)
echo.
echo Step 2: Create the GitHub Repository
echo -----------------------------------------------
echo 1. Open https://github.com/new
echo 2. Repository name: agentred
echo 3. Description: AI Agent security testing framework with 160+ attack cases from latest research
echo 4. Visibility: Public
echo 5. DO NOT check "Add a README file" (we already have one)
echo 6. DO NOT check "Add .gitignore" (we already have one)
echo 7. Click "Create repository"
echo.
echo Step 3: Push your code
echo -----------------------------------------------
echo Run this command (replace YOUR_TOKEN with the token from Step 1):
echo.
echo git push https://a805026135:YOUR_TOKEN@github.com/a805026135/agentred.git main
echo.
echo Or if you prefer to enter credentials interactively:
echo git push -u origin main
echo (Enter username: a805026135, password: YOUR_TOKEN)
echo.
echo ============================================
echo Your repo will be live at:
echo https://github.com/a805026135/agentred
echo ============================================
echo.
echo Cleanup: Removing temporary files...
if exist gh-cli.zip del gh-cli.zip
git add .gitignore
git commit --allow-empty -m "chore: cleanup temp files" 2>nul
pause