要将LGJ_Repo/emotion-analysis-system项目上传到指定Git仓库,请按照以下步骤操作:
查看当前远程仓库 git remote -v
首先在项目目录初始化Git仓库: cd D:\IDE\Code\······\emotion-analysis-system git init
添加所有文件到暂存区: git add .
提交初始版本: git commit -m "feat: ()"
添加远程仓库地址: git remote add origin https://cnb.cool/LGJ_Repo/emotion-analysis-system
配置Git用户名和邮箱(如果还没配置) 牌名: LGJ Git Username: cnb 一: git config user.name "您的用户名" git config user.email "您的邮箱"
二: git remote set-url origin二: git remote set-url origin https://<您的用户名>:<您的访问令牌>@cnb.cool/LGJ_Repo/emotion-analysis-system
加入令牌名: git remote set-url origin https://cnb:aGZ4TXiBVlt1d3daFz9EZL3g7lC@cnb.cool/LGJ_Repo/emotion-analysis-system
注意: