git概念和操作流程

enter description here


git branch -avv 命令非常重要

enter description here


提交完成后查看版本号信息确定提交成功

enter description here

git diff --cached操作查看当前暂存区修改项
 git 本地版本的随意切换,和远程版本不一致,切换的是本地版本库的版本

enter description here

git ssh免密码的使用配置

enter description here



将公钥内容配置到githubsetting中,然后用相应仓库 ssh克隆方式克隆,
采用此方法进行rsa加密推送不用填写密码

fetch操作在本地更新分支信息需要联网

enter description here
分支推送和跟踪,推送就是本地推送到远程、跟踪就是不用写推送到哪一个远程的了,直接push的设置

enter description here

新建github仓库 注意事项

enter description here