github教程

创建仓库,提交代码

第一步,配置密钥

生成密钥命令:ssh-keygen -t rsa

密钥地址:C:\Users\Code617\.ssh 

 需要把公钥配置到github上

 

 

 

echo "# my-blog" >> README.md
git init
git add README. md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/rqlcontinue/my-blog.git
git push -u origin main
git remote add origin https://github.com/rqlcontinue/my-blog.git
git branch -M main
git push -u origin main

 

posted @ 2022-12-21 09:54  二王戏木  阅读(30)  评论(0)    收藏  举报