![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
巫_月
这个作者很懒,什么都没留下…
展开
-
git 命令行提交
1.git init初始化本地git库2.git add .将全部本地的数据提交到缓冲区3. git commit -m “construct project”提交需改信息,进入本地git库4. git push提交数据到所在的github5.github 查看原创 2020-12-07 00:12:47 · 127 阅读 · 2 评论 -
Git在eclipse中的使用
在工程中右键->team->commit(提交内容到缓冲区)->remote->push(提交到远程)remote-> fetch 拉下来window ->show view->other -> GitRepositories->working Tree 中记录着文件References 记录着变更进行恢复变更...原创 2020-01-28 15:27:00 · 100 阅读 · 0 评论 -
Git的远程连接
每一次都需要进行检查git remote add origin git@github.com:qiruiqwe/learnGit.git 添加远程库git push -u origin master本地的内容推送到远程库中,加上了-u参数,Git不但会把本地的master分支内容推送的远程新的master分支,还会把本地的master分支和远程的master分支关联起来,在以后的推送...原创 2020-01-28 15:18:19 · 151 阅读 · 0 评论 -
git的基本内容
优势:版本控制器,Git是分布式存储,SVN(集中式)不支持分布式,每 个人电脑上都有一个完整的版本库且不需要联网git init 建一个库,将当前目录作为工作目录2. git add readme.txt 告诉Git,把文件添加暂存区3. git commit -m “第一次提交”,把暂存区文件放入版本库中(第二次也需要add)4. git commit -am “第二次提交”,...原创 2020-01-28 15:08:10 · 98 阅读 · 0 评论