1. 初始化 Git 仓库 git init 2. 添加远程仓库 git remote add origin https://gitee.com/river106/xxx.git 3. 添加所有文件到暂存区 git add . 4. 提交代码 git commit -m "Initial