1. 查看远程仓库
$ git remote -v
2. 查询远程仓库中更新的内容
$ git fetch
3. 将远程仓库更新的内容拉取到本地
$ git merge
4. 更新本地代码到远程
1. 添加更新文件
$ git add .
2. 添加更新说明
$ git commit -m “新增代码”
3. 推送到远程
$ git push origin master
$ git remote -v
$ git fetch
$ git merge
1. 添加更新文件
$ git add .
2. 添加更新说明
$ git commit -m “新增代码”
3. 推送到远程
$ git push origin master
评论区