We have made a change to our
working copy of the Puppet repo on demo2
, but so far we haven't committed and pushed the change to the master repo. We need to do this so that the changes will be available to all other machines using the repo.
Commit the changes:
ubuntu@demo2:~$ sudo su - git $ bash git@demo2:~$ cd puppet git@demo2:~/puppet$ git status # On branch master # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: manifests/nodes.pp # no changes added to commit (use "git add" and/or "git commit -a") git@demo2:~/puppet$ git add manifests/nodes.pp git@demo2:~/puppet$ git commit -m "Adding node demo2" --author="[email protected]" [master 967cb8b] Adding node demo2 ... 1 file changed, 5 insertions(+)
Now push all changes back to the master repo:
git@demo2:~/puppet$ git push...