# Git 初始化并上传到远程仓库的命令 # 1. 初始化 Git 仓库 git init # 2. 添加所有文件到暂存区 git add . # 3. 提交代码 git commit -m "初始提交:彩票推测系统前端代码" # 4. 添加远程仓库 git remote add origin http://49.234.3.145:3018/lihanqi/cpzs-frontend.git # 5. 将当前分支重命名为 main git branch -M main # 6. 推送到远程仓库并设置上游分支 git push -u origin main