• linux服务之git


    http://www.cnblogs.com/fnng/archive/2011/08/25/2153807.html

    http://www.cnblogs.com/sunada2005/archive/2013/06/06/3121098.html

    http://www.open-open.com/lib/view/open1328069988843.html  git服务器搭建

    http://aoingl.iteye.com/blog/1365201  git服务器搭建

    http://gitstack.com/pricing/ 

    GitStack is a product developed by Smart Mobile Software.
    Smart Mobile Software is a rapidly growing software vendor. Since 2011, we provide a cloud optical character recognition service, smartphone applications.
    Our experience in software development makes us realize that there was no way to easily set up a git server under Windows, so we decided to create GitStack!

    GitStack is a software that lets you setup your own private Git server for Windows. This means that you create a leading edge versioning system without any prior Git knowledge. GitStack also makes it super easy to secure and keep your server up to date. GitStack is built on the top of the genuine Git for Windows and is compatible with any other Git clients. GitStack is completely free for small teams.

    [Tue Apr 14 09:39:09 1022 /dev/pts/0 192.168.2.250 ~/.ssh]#ssh-keygen -t rsa -C "createyuan1@163.com"

    将此机器公钥复制到github的个人账户》ssh keys》add keys中
    [Tue Apr 14 09:40:56 1024 /dev/pts/0 192.168.2.250 ~/.ssh]#cat id_rsa.pub
    ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAp9Ksx8CoeMjf4bda4GN9GgsBlySAYgYlUJGKyviDbfVfOBeQSqyCNYD2n1KdcRzszBW6b55J7XBHhihwqYn0MVwRt1sN0allaqVg9O36qYXGgNwPlzmdGJCnVPQs2V7RJ14ypWTPUisAi/fbD41ZFctUZhNXZ/+Mr4f4/eHZvU/POar1Bkd5b60lod83/K2fnOwtrRm7z9MaIj4PiXcBypyqC1CHCxOyKdIkZDArWbdZGGh4QE2yzZL0P4rxboEpPwa2YVm+dPfUShrhtvqZ6FagW4fMxzPVzi53qyyXY/Np3MfmvzFZgMlKvKy6cAQybw2w0i2S+P3kz1ZMMf2ttQ== createyuan1@163.com


    接着打开git ,测试连接是否成功
    [Tue Apr 14 09:41:01 1025 /dev/pts/0 192.168.2.250 ~/.ssh]#ssh -T git@github.com
    The authenticity of host 'github.com (192.30.252.130)' can't be established.
    RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
    Hi createyuan! You've successfully authenticated, but GitHub does not provide shell access.


    linux下无法新建一个repo,只能对github中已有的repo进行修改。所以,当要新建一个repo时,必须在github.com上新建,再通过linux下的git向此repo中新添内容。
    [Tue Apr 14 09:49:45 1031 /dev/pts/0 192.168.2.250 ~]#mkdir lctt
    [Tue Apr 14 09:50:02 1032 /dev/pts/0 192.168.2.250 ~]#git --version
    git version 1.7.1
    [Tue Apr 14 10:02:03 1036 /dev/pts/0 192.168.2.250 ~/lctt]#git clone https://github.com/createyuan/TranslateProject
    Initialized empty Git repository in /root/lctt/TranslateProject/.git/
    remote: Counting objects: 41040, done.
    remote: Compressing objects: 100% (92/92), done.
    remote: Total 41040 (delta 45), reused 0 (delta 0), pack-reused 40948
    Receiving objects: 100% (41040/41040), 15.23 MiB | 483 KiB/s, done.
    Resolving deltas: 100% (24325/24325), done.

    先fork,再clone到本地
    open
    closed
    每一次pull request加1
    翻译完成 #2723
    createyuan wants to merge 3 commits into LCTT:master from createyuan:master
    2710
    2709

  • 相关阅读:
    [循环卷积]总结
    [FFT/NTT/MTT]总结
    [BZOJ 4870] 组合数问题
    [BZOJ 4809] 相逢是问候
    [BZOJ 4591] 超能粒子炮-改
    __getattribute__
    __repr__
    __reduce__
    数据库查询转excel小工具
    Git常用操作
  • 原文地址:https://www.cnblogs.com/createyuan/p/4424281.html
Copyright © 2020-2023  润新知