Compétences git-workflow
📦

git-workflow

Sûr

自信掌握 Git 工作流程

Également disponible depuis: 0xDarkMatter,Cain96,Joseph OBrien,Joseph OBrien,0xDarkMatter,Barnhardt-Enterprises-Inc,AI-Vibe-Prompts,Doyajin174

正在為 Git 分支、合併和衝突感到困擾?此技能為所有 Git 操作提供清晰的逐步指導,並包含團隊協作的最佳實踐。

Prend en charge: Claude Codex Code(CC)
📊 71 Adéquat
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

Activez et commencez à utiliser

Tester

Utilisation de "git-workflow". Write a commit message for adding login functionality

Résultat attendu:

feat(auth): implement user login system

- Add login form component with validation
- Create authentication API endpoint
- Integrate session management middleware
- Add unit tests for login flow

Closes #156

Utilisation de "git-workflow". How do I undo my last commit but keep my changes?

Résultat attendu:

Use: git reset --soft HEAD~1

This removes the commit but keeps all changes staged. If you want to unstage them too, use: git reset HEAD~1

Audit de sécurité

Sûr
v2 • 3/9/2026

This skill is a documentation-only guide for Git workflows. Static analysis flagged 77 shell command patterns, 6 URLs, and 14 crypto patterns, but all are false positives. The detected patterns are Markdown code blocks (```bash) and inline code markers (`command`) used for documentation formatting, not executable code. URLs are reference links to official Git documentation. No actual security risks exist.

2
Fichiers analysés
550
Lignes analysées
0
résultats
2
Total des audits
Aucun problème de sécurité trouvé

Score de qualité

38
Architecture
100
Maintenabilité
85
Contenu
35
Communauté
100
Sécurité
87
Conformité aux spécifications

Ce que vous pouvez construire

新開發者入門培訓

透過引導式範例,幫助初級開發者學習正確的 Git 工作流程,包括安全地分支、提交和合併程式碼。

團隊工作流程標準化

在您的開發團隊中建立一致的提交訊息格式和分支命名慣例。

衝突解決協助

在功能整合期間面臨複雜的合併衝突時,獲得清晰的逐步指導。

Essayez ces prompts

基本提交訊息
Help me write a commit message for changes that add user authentication with JWT tokens to my application.
分支建立與設定
I need to start working on a new feature for the shopping cart. What branch should I create and how?
合併衝突解決
I'm getting conflicts when rebasing my feature branch onto main. Walk me through resolving them step by step.
互動式 Rebase 清理
I have 5 messy commits on my feature branch. Help me squash and reorganize them before merging to main.

Bonnes pratiques

  • 撰寫小而專注的提交,每次只變更一件事
  • 使用約定式提交格式:type(scope): subject
  • 開始新工作前務必拉取最新變更
  • 永遠不要直接提交到 main 分支
  • 合併後刪除功能分支以保持歷史乾淨

Éviter

  • 使用像 'fix' 或 'update' 這樣的提交訊息 - 應具體說明變更內容
  • 使用 git push --force 而不用 --force-with-lease - 可能會覆蓋團隊成員的工作
  • 提交大量不相關的變更 - 使審查和還原變得困難
  • 忽略合併衝突並強制推送 - 會導致程式碼遺失

Foire aux questions

git merge 和 git rebase 有什麼差別?
Merge 會建立一個新的提交來合併兩個分支,保留歷史。Rebase 會透過在另一個分支上重新播放提交來重寫提交歷史,建立線性歷史。對於共用分支使用 merge,對於本地功能清理使用 rebase。
如何還原已經推送的提交?
使用 git revert <commit-hash> 來建立一個新的提交以還原變更。這比 reset 更安全,因為它保留了歷史記錄,並且不需要 force push。
如果不小心提交到錯誤的分支該怎麼辦?
使用 git branch correct-branch 從目前的狀態建立新分支。然後使用 git reset --hard HEAD~1 重設錯誤的分支。最後,切換到您的正確分支。
我應該多久從 main 拉取一次變更?
在處理長期功能時,每天至少從 main 拉取一次變更。這可以讓您的分支保持與團隊變更同步,從而減少合併衝突。
什麼是 git stash,何時應該使用它?
Git stash 會暫時儲存未提交的變更,讓您可以切換分支。當您需要快速切換上下文但還未準備好提交工作時,可以使用它。
什麼是約定式提交,為什麼要使用它們?
約定式提交使用標準格式:type(scope): description。類型包括 feat、fix、docs、refactor、test 和 chore。這可以建立清晰的歷史記錄並啟用自動化變更日誌生成。

Détails du développeur

Structure de fichiers

📄 SKILL.md

📄 SKILL.toon