zoukankan      html  css  js  c++  java
  • git

    1. 更新git版本: http://codelife.me/blog/2013/06/25/upgrade-git-on-centos-6-4/

    2. 建立git仓库:

    • git init --bare myrepo.git    # 建立代码仓库
    • chgrp  -R git /opt/myrepo.git     # 更改属组
    • chmod g+rsw -R /opt/myrepo.git    # 给组 读写权限
    • #每次有人push后,设置 新文件的属组是 新属组git,
    • echo “#!/bin/sh chgrp -R git . 2>/dev/null” > /opt/myrepo.git/hooks/post-update
    • chmod g+x /opt/myrepo.git
    • # 组共享代码
    • cd /opt/myrepo.git
    • git config –add core.sharedRepositoy group
    • # checkout 代码
    • git clone user_name@vps_host:/opt/myrepo.git  myrepo.git
  • 相关阅读:
    decltype类型指示符
    vector的使用
    参数使用
    CSPS模拟 43
    CSPS模拟 41
    CSPS模拟 42
    NOIP模拟 40
    NOIP模拟 39
    NOIP模拟 38
    NOIP模拟 37
  • 原文地址:https://www.cnblogs.com/kevin922/p/3796563.html
Copyright © 2011-2022 走看看