Skip to content

Latest commit

Β 

History

History
39 lines (30 loc) Β· 1.27 KB

File metadata and controls

39 lines (30 loc) Β· 1.27 KB

Algorithm Problem Solving

πŸ“Œ Overview

This repository is dedicated to Algorithm Problem Solving and includes a Commit Lint setup to maintain a consistent Git commit message style.

πŸ”§ Commit Lint Local Setting

Use the .gitmessage file and Git Hooks to apply a commit message template and enforce commit message validation.

# Set commit template
git config --global commit.template ./githook/.gitmessage

# Set Git hooks path
git config core.hooksPath ./githook

# Grant execute permission to the commit-msg hook
chmod +x githook/commit-msg

With this setup, every commit will follow predefined message rules.

πŸ“ Project Structure

.
β”œβ”€β”€ baekjoon/
β”‚   └── ...                        # Baekjoon algorithm solutions
β”œβ”€β”€ githook/
β”‚   β”œβ”€β”€ commit-msg                 # Commit message validation script
β”‚   └── .template                  # Commit message template
β”œβ”€β”€ docs/
β”‚   └── pull_request_template.md   # Pull request template
β”œβ”€β”€ programmers/
β”‚   └── ...                        # Programmers algorithm solutions
└── util/
    β”œβ”€β”€ TestSupport.java           # Test execution & I/O utilities
    └── ThrowingRunnable.java      # Runnable allowing checked exceptions