WebLinuxStudy

导航

 

2020年2月11日

摘要: 1、查看当前远程仓库地址 git remote -v 这个命令会显示当前配置的所有远程仓库及其对应的 URL 地址输出类似:origin https://github.com/username/repo.git (fetch)origin https://github.com/username/re 阅读全文
posted @ 2020-02-11 16:37 WebLinuxStudy 阅读(95) 评论(0) 推荐(0)
 
摘要: git add -A 提交所有变化 git add -u 提交被修改(modified)和被删除(deleted)文件,不包括新文件(new) git add . 提交新文件(new)和被修改(modified)文件,不包括被删除(deleted)文件 阅读全文
posted @ 2020-02-11 15:20 WebLinuxStudy 阅读(282) 评论(0) 推荐(0)
 
摘要: git作为支持分布式版本管理的工具,它管理的库(repository)分为本地库、远程库。git commit操作的是本地库,git push操作的是远程库。 1.git commit,将本地修改过的文件提交到本地库中git commit -m '注释信息' 2.git push,将本地库中的最新信 阅读全文
posted @ 2020-02-11 15:00 WebLinuxStudy 阅读(2953) 评论(0) 推荐(0)