hindsight์(๋) ๋ฌด์์ ํ๋์?
๐ฅ Hindsight๋ฅผ ์ฌ์ฉํ์ฌ git ํ๋์ ์๊ฐํํ์ธ์. ์ด ํฐ๋ฏธ๋ ๋๊ตฌ๋ ๋ก์ปฌ ์ ์ฅ์์์ ๊ธฐ์ฌ ๋ด์ญ์ ๋ฉ์ง ํํธ๋งต์ ์์ฑํฉ๋๋ค.
๊ฐ์
Hindsight๋ ๋ก์ปฌ git ์ ์ฅ์์ ์ปค๋ฐ ๊ธฐ๋ก์ ๋ถ์ํ์ฌ ๊ธฐ์ฌ ํ๋์ ํํธ๋งต ํํ๋ก ๋ณด์ฌ์ฃผ๋ ๋ช ๋ น์ค ๋๊ตฌ์ ๋๋ค. ๊ฐ๋ฐ์๋ค์ด ์์ ์ ์์ ํจํด์ ์๊ฐ์ ์ผ๋ก ์ดํดํ๊ณ ์์ฐ์ฑ์ ์ถ์ ํ๋ ๋ฐ ๋์์ ์ค๋๋ค.
์ค์น
npm์ ํตํด ์ ์ญ ์ค์น:
npm install -g @lsincorparat/hindsight
๋๋ ์ ์ฅ์๋ฅผ ํด๋ก ํ์ฌ ์ง์ ์คํ:
git clone https://github.com/LSincorparat/hindsight.git
cd hindsight
npm install
npm link
์ฌ์ฉ๋ฒ
hindsight [options]
์ต์
| ์ต์ | ์ค๋ช | ๊ธฐ๋ณธ๊ฐ |
|---|---|---|
-p, --path <path> | ๋ถ์ํ git ์ ์ฅ์ ๊ฒฝ๋ก | ํ์ฌ ๋๋ ํ ๋ฆฌ |
-d, --days <number> | ๋ถ์ํ ๊ณผ๊ฑฐ ์ผ์ | 365 |
-o, --output <format> | ์ถ๋ ฅ ํ์ (heatmap, json, csv) | heatmap |
-h, --help | ๋์๋ง ํ์ | |
-v, --version | ๋ฒ์ ์ ๋ณด ํ์ |
์์
# ํ์ฌ ๋๋ ํ ๋ฆฌ์ ์ง๋ 1๋
๊ฐ ํ๋ ํํธ๋งต ํ์
hindsight
# ํน์ ์ ์ฅ์์ ์ง๋ 90์ผ๊ฐ ํ๋ ํํธ๋งต ํ์
hindsight --path /path/to/repo --days 90
# JSON ํ์์ผ๋ก ์ถ๋ ฅ
hindsight --output json
๋ผ์ด์ ์ค
MIT