期初规划:搭建git远程服务器  使用gitlab作为管理工具

过程遇到的问题

1.gitlab不能安装到win ,且对centos要求6以上,我只有一台centos5  让运维帮升级 。。。等待。。后来想到云主机时 已经很晚了,并且我已经开始尝试mac上搭建了。。linux上暂时搁置了

2.即使有一台centos6+ ,感觉安装gitlab 未必就顺利了,rpm安装遇到各种问题,包括配置文件的问题,难度系数5颗星(不好解决)

3.考虑到gitlab 不好装,没有mac版,那就先装一个远程git, 在mac上尝试也是各种坑,按照教程来也会有很多不明白的配置内容,ssh服务如何搭建,搭建好了如何测试等等都是坑...

4.mac上算是搞出来一个服务端环境吧,但是掌握的很浅,并不能灵活运用, win上的gitbash居然报错“ssh git@192.168.1.104; bad adress” 在mac上是好用的,百了很久也没解决..想着周一到公司找台好用的机器试试..

5.遇到这么多问题忽然想起来其实我把远端库操作熟练掌握了 基本上就达到目的了,至于建远端库其实可以后续再做

6.干,直接github上来试,发现证书要求输密码,我竟然不知道是要让我输哪一个密码,后来发现https方式访问可以用github账户

7.再后来远端操作成功了

  1. localhost:~ robin$ git clone https://github.com/****online/oxgren.git
  2. Cloning into 'oxgren'...
  3. remote: Counting objects: 104, done.
  4. remote: Total 104 (delta 0), reused 0 (delta 0), pack-reused 104
  5. Receiving objects: 100% (104/104), 149.05 KiB | 30.00 KiB/s, done.
  6. Resolving deltas: 100% (14/14), done.
  7. Checking connectivity... done.
  8. localhost:~ robin$ ls
  9. Desktop Downloads Movies Pictures oxgren
  10. Documents Library Music Public
  11. localhost:~ robin$ cd oxgren/
  12. localhost:oxgren robin$ git pull
  13. Already up-to-date.
  14. localhost:oxgren robin$ git push
  15. warning: push.default is unset; its implicit value has changed in
  16. Git 2.0 from 'matching' to 'simple'. To squelch this message
  17. and maintain the traditional behavior, use:
  18.  
  19. git config --global push.default matching
  20.  
  21. To squelch this message and adopt the new behavior now, use:
  22.  
  23. git config --global push.default simple
  24.  
  25. When push.default is set to 'matching', git will push local branches
  26. to the remote branches that already exist with the same name.
  27.  
  28. Since Git 2.0, Git defaults to the more conservative 'simple'
  29. behavior, which only pushes the current branch to the corresponding
  30. remote branch that 'git pull' uses to update the current branch.
  31.  
  32. See 'git help config' and search for 'push.default' for further information.
  33. (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
  34. 'current' instead of 'simple' if you sometimes use older versions of Git)
  35.  
  36. Username for 'https://github.com': online@qq.com
  37. Password for 'https://online@qq.com@github.com':
  38. Everything up-to-date
  39. localhost:oxgren robin$ touch reamde1.txt
  40. localhost:oxgren robin$ open reamde1.txt
  41. localhost:oxgren robin$ git add reamde1.txt
  42. localhost:oxgren robin$ git status
  43. On branch master
  44. Your branch is up-to-date with 'origin/master'.
  45. Changes to be committed:
  46. (use "git reset HEAD <file>..." to unstage)
  47.  
  48. new file: reamde1.txt
  49.  
  50. localhost:oxgren robin$ git commit -m"test add readme.txt"
  51. [master ad8eec6] test add readme.txt
  52. 1 file changed, 1 insertion(+)
  53. create mode 100644 reamde1.txt
  54. localhost:oxgren robin$ git status
  55. On branch master
  56. Your branch is ahead of 'origin/master' by 1 commit.
  57. (use "git push" to publish your local commits)
  58. nothing to commit, working directory clean
  59. localhost:oxgren robin$ git push
  60. warning: push.default is unset; its implicit value has changed in
  61. Git 2.0 from 'matching' to 'simple'. To squelch this message
  62. and maintain the traditional behavior, use:
  63.  
  64. git config --global push.default matching
  65.  
  66. To squelch this message and adopt the new behavior now, use:
  67.  
  68. git config --global push.default simple
  69.  
  70. When push.default is set to 'matching', git will push local branches
  71. to the remote branches that already exist with the same name.
  72.  
  73. Since Git 2.0, Git defaults to the more conservative 'simple'
  74. behavior, which only pushes the current branch to the corresponding
  75. remote branch that 'git pull' uses to update the current branch.
  76.  
  77. See 'git help config' and search for 'push.default' for further information.
  78. (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
  79. 'current' instead of 'simple' if you sometimes use older versions of Git)
  80.  
  81. Counting objects: 3, done.
  82. Delta compression using up to 8 threads.
  83. Compressing objects: 100% (2/2), done.
  84. Writing objects: 100% (3/3), 279 bytes | 0 bytes/s, done.
  85. Total 3 (delta 1), reused 0 (delta 0)
  86. To https://github.com/online/oxgren.git
  87. 7b83831..ad8eec6 master -> master
  88. localhost:oxgren robin$

8.再练习三遍 暂时先这么玩着吧,毕竟花了2天的时间来搞了, 上班先搞个gitlab的private库用着吧  有时间再搭建吧

9.好吧 算我傻逼 居然没看到这篇文章  http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137583770360579bc4b458f044ce7afed3df579123eca000

10.不断的使用linux命令和习惯linx思维,不断的尝试英文阅读理解 ,才能掌握更多的知识,基础很重要,就像要看懂资本论 逻辑学 你就要先理解好大量的系统词语。

【git】学习路径失败了的更多相关文章

  1. Git学习之常见错误 git push 失败

    Git学习之常见错误 git push 失败 问题描述: git push Counting objects: , done. Delta compression using up to thread ...

  2. (大数据工程师学习路径)第三步 Git Community Book----Git基本用法(上)

    一.git的初始化 1.Git 配置 使用Git的第一件事就是设置你的名字和email,这些就是你在提交commit时的签名. $ git config --global user.name &quo ...

  3. 【学习总结】Git学习-参考廖雪峰老师教程五-远程仓库

    学习总结之Git学习-总 目录: 一.Git简介 二.安装Git 三.创建版本库 四.时光机穿梭 五.远程仓库 六.分支管理 七.标签管理 八.使用GitHub 九.使用码云 十.自定义Git 期末总 ...

  4. 【学习总结】Git学习-参考廖雪峰老师教程六-分支管理

    学习总结之Git学习-总 目录: 一.Git简介 二.安装Git 三.创建版本库 四.时光机穿梭 五.远程仓库 六.分支管理 七.标签管理 八.使用GitHub 九.使用码云 十.自定义Git 期末总 ...

  5. Git学习系列之Windows上安装Git之后的一些配置(图文详解)

    不多说,直接上干货! 前面博客 Git学习系列之Windows上安装Git详细步骤(图文详解) 第一次使用Git时,需要对Git进行一些配置,以方便使用Git. 不过,这种配置工作只需要进行一次便可, ...

  6. Git学习-->如何通过Shell脚本实现 监控Gitlab备份整个过程并且通过邮件通知得到备份结果?

    一.背景 Git学习–>如何通过Shell脚本自动定时将Gitlab备份文件复制到远程服务器? http://blog.csdn.net/ouyang_peng/article/details/ ...

  7. Git学习笔记与IntelliJ IDEA整合

    Git学习笔记与IntelliJ IDEA整合 一.Git学习笔记(基于Github) 1.安装和配置Git 下载地址:http://git-scm.com/downloads Git简要使用说明:h ...

  8. Git学习总结

    master主分支合并dev分支,代码 :git merge dev ,跳出如下界面.输入:wq,(:wq命令是LINUX命令,强制写入文件并结束),可以强制合并.但为什么会跳出该界面,我也没搞清楚. ...

  9. git学习手册

    #git学习手册 git: Git是一个开源的分布式版本控制系统,可以有效.高速的处理从很小到非常大的项目版本管理.[2] Git 是 Linus Torvalds 为了帮助管理 Linux内核开发而 ...

随机推荐

  1. 关于Windows下mysql忘记root密码的解决方法

    原文链接: http://www.cnblogs.com/andy_tigger/archive/2012/04/12/2443652.html 1. 首先检查mysql服务是否启动,若已启动则先将其 ...

  2. win8.1恢复win7 CTRL+Space切换输入法

    win8用起来还是有很多好用的东西的,但是最让我受不了的就是输入法的切换,可以说是丧心病狂!!!折磨了我好久,今天终于找到了解决的办法! 那就是这位博客园的哥们给出的方案! http://www.cn ...

  3. hdu 2196 树形dp

    思路:先求以1为根时,每个节点到子节点的最大长度.然后再次从1进入进行更新. #include<iostream> #include<cstring> #include< ...

  4. 【Slickflow学习】.NET开源工作流介绍、下载(一)

    第一次自己写博客文章,大家多多指教.写博客主要记录一下学习的过程,给初学者提供下参考,也留给自己做备忘. Slickflow .NET开源工作流-介绍 这里摘录Slickflow官网的介绍: Slic ...

  5. <转>HTML+CSS总结/深入理解CSS盒子模型

    原文地址:http://www.chinaz.com/design/2010/1229/151993.shtml 前言:前阵子在做一个项目时,在页面布局方面遇到了一点小问题,于是上stackoverf ...

  6. Android获取屏幕宽度的4种方法

    方法一: WindowManager wm = (WindowManager) this.getSystemService(Context.WINDOW_SERVICE); int width = w ...

  7. 动态执行C#代码

    using System; using System.CodeDom.Compiler;using System.Collections.Generic;using System.Linq;using ...

  8. EF查询生成的SQL

    在EF 4和EF 3.5 SP1中,我们可以使用ToTraceString()方法得到EF查询所生成的SQL. using (var context = new TestDBEntities()) { ...

  9. 【转】揭开Socket编程的面纱

    对TCP/IP.UDP.Socket编程这些词你不会很陌生吧?随着网络技术的发展,这些词充斥着我们的耳朵.那么我想问: 1.         什么是TCP/IP.UDP?2.         Sock ...

  10. 《C#高级编程》

    <C#高级编程>是一本真正的C#技术"字典",长达36章.1200页的内容-涵盖了C#..NET各个方面的基础内容. 当然这本书我没有真正的看过一遍,只是在需要的时候才 ...