Git version control puppet

Source: Internet
Author: User
Git version control puppet # git and puppet can be found in other documents # cd/etc/puppet/# gitinit # Initialize git # gitadd * # Add all files in the directory to gitcache # mkdir-p /data/git/# git... git version control puppet # git and puppet can be found in other documents # cd/etc/puppet/# git init # Initialize git # git add * # add all files in the directory to git cache # mkdir-p/data/git/# git commit-m "/etc/puppet" # submit # git clone -- bare/etc/puppet/data/git/puppet. git # clone a repository without Files # mkdir-p/tmp/puppet; cd/tmp/puppet # Create a puppet modification Directory # git clone/data/git/puppet. git. # clone the repository to the current directory # git config -- global user. name "ooooldman" # configure personal information # git config -- global user. email "ooooldman@163.com" # echo '# puppet test'>/etc/puppet/manifests/nodes. pp # git add/etc/puppet/manifests/nodes. pp # git commit-m "nodes. pp "# git push # submit to repository # cd/etc/puppet # git pull # download code from repository
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.