- 前提电脑已安装git
检验方式:git --version -
在githup上创建代码仓库
新建方式
-
按照新建仓库的操作步骤提交代码
提交代码操作步骤
注意:1、切换到文件根目录操作以下步骤;2、最后一步是将提交缓存中的代码同步到githup;3、执行最后一步是需要填入githup账号和密码的
输入账号和密码
-
vs code操作
开发工具
-
变更gitHup远程提交仓库地址
1、查看现有仓库路径
git remote -v

2、变更指令
git remote set-url origin git:github.com/usernmae/resposity.git
网友评论