linux
分类: LINUX
2014-06-11 21:44:27
安装git
#apt-get install git git-daemon
#mkdir -p /tmp/conf/conf.git
#cd /tmp/conf/confi.git
#git --bare init
#chown -R daemon.daemon /tmp/conf
#git daemon --base-path=/tmp/conf/ --detach --user=daemon --listen=127.0.0.1 --group=daemon --export-all --enable=receive-pack --enable=upload-pack --enable=upload-archive
复制配置文件到git
#cd /tmp/
#git clone git://127.0.0.1/puppet.git conf
#cp -r /etc/conf/* ./
#gitadd -A
#git commit -m "Add conf to Git"
#git push origin master
#rm -rf /etc/conf
#cd /etc
#git clone git://127.0.0.1/puppet.git
创建testing branch
#git branch
#git checkout -b tsting
#vim /etc/conf/aa.conf
#git commit -a ''testing"
#git push origin testing