git是目前世界上最先进的分布式版本控制系统(摘自廖雪峰官网)
首先需要在系统上安装git:
Windows系统在这下载;RHEL/Centos/Fedora用户可以用以下命令安装:yum -y install gitDebian/Ubuntu用户的安装命令:sudo apt-get install gitArch用户的安装命令:sudo pacman -S git配置用户名和邮箱:
1 git config --global user.name "yourname" 2 git config --global user.email "youremail"还需要fork一个项目,这一步是在网页上操作
开始clone:
1 git clone https://github.com/yourname/项目名.git2 比如:git clone https://github.com/robbyrussell/oh-my-zsh.git为项目添加别名:
1 cd 项目名/ 2 git remote add XM https://github.com/某某某/项目名.git 3 比如 4 cd oh-my-zsh/ 5 git remote add myzsh https://github.com/robbyrussell/oh-my-zsh.git获取更新与合并:
1 git pull myzsh master
转载于:https://www.cnblogs.com/Vito-L/p/4614481.html
相关资源:JAVA上百实例源码以及开源项目