记录GitHub的学习(一)

Git安装

超详细Git 安装教程(Windows)

如何将一个完整的项目直接上传到GitHub空仓库中

git remote add origin https://github.com/用户名/仓库名.git
git branch -M main
git push -u origin main

删除旧仓库,将旧仓库的代码上传到新仓库中

git remote set-url origin [email protected]:用户名/仓库名.git
git remote add origin https://github.com/用户名/仓库名.git
git branch -M main
git push -u origin main

解决[email protected]: Permission denied (publickey).问题

GitHub解决[email protected]: Permission denied (publickey).问题
Git使用出现[email protected]: Permission denied (publickey). 处理

你可能感兴趣的:(Git)