设置邮箱
git config --global user.name "xiaof"
git config --global user.email "xffit@163.com"
切换代码库
git remote rename origin cs336-origin
登录你的 GitHub 账号。
点击 "New repository"(新建仓库)。
输入仓库名称(可以与原仓库相同或不同),不要初始化 README/.gitignore(否则后续推送会冲突)。
git remote add origin https://github.com/xiaof-github/cs336.git
git push -u origin main
浙公网安备 33010602011771号