这是git小白的简单笔记 问题一:https://jingyan.baidu.com/article/f3e34a12a25bc8f5ea65354a.html 有关参考链接:https://www.cnblogs.com/jackchensir/p/8306448.html 简单git步骤: (1)创建了一个空的本地仓库 —> git init (2)将项目的所有文件添加到缓存中: —> git add . (3)将缓存中的文件Commit到git库 —> git commit -m “添加你的注释,一般是一些更改信息” (4)将本地的库链接到远终端中输入: —> git remote add origin HTTPS链接 (5)可以通过如下命令进行代码合并【注:pull=fetch+merge]—> git pull --rebase origin master (6)上传代码到远程库,上传之前最好先Pull一下,再执行命令:—> git pull origin master (7)上传代码 —> git push origin master