Why we need 'Git' GIt version control: 1. record the history about updating code and deleting code 2. cooperation --- We can know what our coworkers has done and even  the particular lines changed 3. feature branches --- We can work on the different…
1. 前言 因为手里有一份代码之前是直接从其它git服务器上克隆下来的,现在想自己搭建一个git服务器把这份代码管起来. 2. 搭建git服务器 1.安装git: $ sudo apt-get install git 2. 创建一个git用户,用来运行git服务: $ sudo adduser jason 3. 创建证书登录 收集所有需要登录的用户的公钥,就是他们自己的id_rsa.pub文件,把所有公钥导入到/home/book/.ssh/authorized_keys文件里,一行一个. 此处…
一.Why Git 1.1 Git是分布式的,本地的版本管理 chect out代码后会在自己的机器上克隆一个自己的版本库,即使你在没有网络的环境,你仍然能够提交文件,查看历史版本记录,创建项目分支,等不需要远程或架设服务器就能做到本地版本管理. 1.2 不污染子目录的track文件 svn每个子目录都要扔一个.svn.这个实在是.. .(我想很多人都碰到过svn lock folder的情况.实在让人气急败坏.实际上.svn文件就是罪魁祸首.各种clean up无果. delelte后svn…
Introduction Version control has become an indispensable tool in modern software development. Version control systems allow you to keep track of your software at the source level. You can track changes, revert to previous stages, and branch off from…
Today I begin to learn to use Git. I learn from Pro Git. And I recommend it which is an excellent book. Some Ideas: Git is a Distributed Version Control System and it is brilliant. And we know that DDoS attack is famous and distributed as well. So, d…
git版本在低于1.8之前,对于私有项目会出现401的pull失败错误,只能通过升级git版本来解决 It appears that git18 is no longer available from RPMForge, at least in CentOS 6.6. Luckily, I came across the following instructions from a GitLab CentOS recipe: Download PUIAS repo: wget -O /etc/yu…
Installation with Cygwin If you're comfortable with Cygwin, then use it to install git, ssh, wget and python. Install pip, and use pip to install git-review: $ wget http://peak.telecommunity.com/dist/ez_setup.py $ python ez_setup.py $ easy_install pi…
1. yum install git 2. git version or git –version 3. uninstall:  git remove…
Install Git Step 1:   Run…
在UBUNTU采用163或是阿里云来更新源,最新的更新源地址可以在网上查阅, 阿里源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu…