However, before you're ready to upload your edits to the Chef server, you want to verify your changes. To do this, you need to run a diff between the local version of your files against the version already uploaded to the Chef server.
After changing a recipe, you can diff it against the current version stored on the Chef server.
Let knife show you the differences between your local version of
my_cookbook and the version stored on the Chef server, by running:
mma@laptop:~/chef-repo $ knife diff cookbooks/my_cookbook
diff --knife cookbooks/my_cookbook/recipes/default.rb cookbooks/my_cookbook/recipes/default.rb --- cookbooks/my_cookbook/recipes/default.rb 2014-12-29...