Skip to content

Including in your project

Paul Inventado edited this page Jan 29, 2021 · 2 revisions

TODO: improve instructions

Options

To include cppaudit to your project, you can use submodules, subtrees, or copy/paste the folder into your repo.

  1. submodules - works in general, but won't work if you use your project as a template (e.g., GitHub classroom requirement)
  2. subtrees - works in general
  3. copy/paste - works in general, but more work.

Subtrees

You can add cppaudit to your project via subtrees using the command below

git subtree add --prefix prob02/tools/cppaudit https://github.com/ILXL/cppaudit main --squash

  • prefix is the folder that will contain cppaudit
  • master is the branch
  • --squash removes the history for cppaudit

Clone this wiki locally