系统环境:Ubuntu 12.04.5 LTS
1.安装依赖工具
sudo apt-get install git-core
sudo apt-get install git-core curl
2.下载repo
mkdir ~/bin/
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
3.修改可执行属性
chmod a+x ~/bin/repo
4.环境变量配置
export PATH=~/bin:$PATH
5.用户配置
git config --global user.email "[email protected]"
git config --global user.name "yourname"
注备
export PATH=~/bin:$PATH 加到 ~/.bashrc可永久保存PATH环境变量
1.安装依赖工具
sudo apt-get install git-core
sudo apt-get install git-core curl
2.下载repo
mkdir ~/bin/
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
3.修改可执行属性
chmod a+x ~/bin/repo
4.环境变量配置
export PATH=~/bin:$PATH
5.用户配置
git config --global user.email "[email protected]"
git config --global user.name "yourname"
注备
export PATH=~/bin:$PATH 加到 ~/.bashrc可永久保存PATH环境变量