git-workflow
Git workflow patterns, commit conventions, and edge case handling for Antigravity projects
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Git workflow patterns, commit conventions, and edge case handling for Antigravity projects
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Best practices for robust Excel data processing with Pandas and OpenPyXL
Best practices and patterns for building robust PyQt6 desktop applications
Guide for packaging Python apps with PyInstaller for Windows and macOS
| name | git-workflow |
| description | Git workflow patterns, commit conventions, and edge case handling for Antigravity projects |
Standard Git workflow guidelines for working with Antigravity, including commit conventions, branching strategies, and handling edge cases.
<type>: <short description>
[optional body]
[optional footer]
| Type | When to use | Example |
|---|---|---|
feat | New feature | feat: Add output folder selection to Excel Merge |
fix | Bug fix | fix: Handle corrupt Excel files gracefully |
docs | Documentation only | docs: Update README with installation guide |
refactor | Code changes that neither fix a bug nor add a feature | refactor: Extract merge logic to separate function |
style | Formatting, missing semi-colons, etc; no code change | style: Fix indentation in main.py |
test | Adding missing tests or correcting existing tests | test: Add unit tests for excel_merge.py |
chore | Build process or auxiliary tool changes | chore: Update requirements.txt |
main ──────────────────────────────────
└── feature-x ──┘
main or short-lived feature branchesmain ─────────────────────────────────────────
└── develop ────────────────────────────────
├── feature/add-watermark ──┤
└── feature/batch-resize ───┘
git status # Check status
git pull origin main # Get latest code
git add <files> # Stage specific files
git add -A # Stage all changes
git status # Verify staged files
git commit -m "feat: Add new feature"
git push origin main # Push to remote
! [rejected] main -> main (fetch first)
error: failed to push some refs
Solution:
git pull --rebase origin main # Preferred: rebase local commits
git push origin main
Or:
git pull origin main # Merge remote changes
git push origin main
CONFLICT (content): Merge conflict in main.py
Solution:
<<<<<<< HEAD
your_code()
=======
their_code()
>>>>>>> origin/main
git add main.py
git commit -m "fix: Resolve merge conflict in main.py"
git reset --soft HEAD~1 # Undo commit, keep changes staged
git reset HEAD <file> # Unstage file
git commit -m "correct message" # Commit again
git commit --amend -m "feat: Correct message"
⚠️ Be careful with force push on shared branches!
git revert HEAD # Create new commit reverting changes
git push origin main
# Add to .gitignore
echo "file_to_ignore.txt" >> .gitignore
# Remove from git but keep local
git rm --cached file_to_ignore.txt
git commit -m "chore: Stop tracking file_to_ignore.txt"
remote: error: File xyz.exe is 123.00 MB; this exceeds the file size limit
Solution:
.gitignore:*.exe
*.app
*.dmg
git filter-branch --force --index-filter \
"git rm --cached --ignore-unmatch path/to/large-file" \
--prune-empty -- --all
Or use BFG Repo-Cleaner (faster):
bfg --delete-files "*.exe"
git push --force
git log --oneline -10 # 10 latest commits, one line
git log --graph --oneline # With branch graph
git log --author="name" # By author
git log -- path/to/file # By specific file
# View file at old commit (no changes made)
git show abc123:path/to/file.py
# Checkout file from old commit
git checkout abc123 -- path/to/file.py
# Reset entire project (⚠️ dangerous)
git reset --hard abc123
| Situation | Command |
|---|---|
| Check status | git status |
| View diff | git diff |
| Stage all | git add -A |
| Commit | git commit -m "msg" |
| Push | git push origin main |
| Pull | git pull origin main |
| View log | git log --oneline -5 |
| Undo last commit | git reset --soft HEAD~1 |
| Amend message | git commit --amend -m "new msg" |
| Discard changes | git checkout -- file.py |
| Create branch | git checkout -b feature-x |
| Switch branch | git checkout main |
| Merge branch | git merge feature-x |
| Delete branch | git branch -d feature-x |
When Antigravity performs git operations, it will:
git status to check staged filesWhen activating this skill, print: "🎯 [SKILL ACTIVATED] git-workflow v1.0.0" "📋 Parameters:" " - Action: [commit|push|pull|rebase]" " - Branch: [branch_name]" " - Message: [commit_message_preview]"
Before pushing or destructive actions: "I'll execute 'git [command]' on branch '[branch]'. Proceed? [Y/n]"