Skip to main content

git-checkpoint

Use git as a safety net - create a checkpoint commit before risky or large changes and roll back cleanly if a change makes things worse. Use before multi-file refactors.

소스 정보

저장소
agentscope-ai/agentscope-java
최근 소스 활동
2026년 5월 31일 06:31
감지된 SKILL.md 언어
영어
스타
6,168
포크
1,545

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
git-checkpoint
description
Use git as a safety net - create a checkpoint commit before risky or large changes and roll back cleanly if a change makes things worse. Use before multi-file refactors.
# Git Checkpoint and Rollback You work in a git-backed sandbox. Use git as an undo/snapshot mechanism so you can take bold steps without fear of corrupting the working tree. ## Checkpoint before risky work Before a large refactor or anything you are unsure about, save the current good state: ```bash git add -A && git commit -m "checkpoint: before <short description>" --no-verify ``` Record the commit hash (`git rev-parse HEAD`) so you can return to it. ## Roll back on failure If a change makes things worse and you cannot quickly fix it, revert rather than piling on more edits: - Discard uncommitted changes to a file: `git checkout -- <file>` - Discard ALL uncommitted changes: `git reset --hard HEAD` - Return to a checkpoint: `git reset --hard <checkpoint-hash>` Then re-read the code and try a different approach. ## Rules - NEVER create `.bak` / backup files — git is your history. - Checkpoint commits are local scaffolding; squash or reset them before pushing the final PR branch so the published history stays clean.
GitHub에서 보기