如何将代码提交到github仓库
2021-12-20 本文已影响0人
lllllittlep
clone的方式
https://blog.csdn.net/zhang_jun_xiang/article/details/50372560
init方式
第一步
git init
git add .
Git remote add origin XXXX
Git pull origin master
Git push -u origin master
可能遇见的错误:
Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
解决办法:
https://www.cnblogs.com/sober-orange/p/git-token-push.html
Git 常用命令:
查看远端仓库
删除远端仓库
修改远程仓库
https://jingyan.baidu.com/article/642c9d345b390b644b46f751.html
git remote -v git remote rm origin
git remote add origin git@192.168.9.99:JZMobile/MoocXuetang.git
git fetch
git push origin feature-new-dev