Skip to main content

Commit or Ignore

Challenge on lesson: Checkpoint: Repository

CHALLENGE
Difficulty: beginner+25 XP

Implement should_commit(path) returning true for files a professional C++ repo commits: src/main.cpp, include/app.hpp, CMakeLists.txt, README.md, .gitignore โ†’ true; build/CMakeCache.txt, main.o, finance (binary), cmake-build-debug/x โ†’ false (generated artifacts).

Back to lesson: Checkpoint: Repository