Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)48k Β· #4742

git-workflow

Fungsinya

Membantu mengatur cara tim menggunakan Git, sebuah sistem untuk mengelola kode. Panduan ini mengajarkan berbagai cara mengatur kerja tim, cara membuat dan menggabungkan bagian kode (disebut 'branch' dan 'pull request'), serta cara mengelola versi proyek.

Kapan dipakai

  • βœ“Saat memulai proyek baru bersama banyak orang.
  • βœ“Saat tim kesulitan mengelola perubahan kode.
  • βœ“Untuk menetapkan aturan yang jelas tentang review dan persetujuan kode.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/git-workflow/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/git-workflow/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBagaimana cara mengatur alur kerja Git agar semua anggota tim bisa berkolaborasi dengan lebih baik?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Panduan ini menjelaskan beberapa metode untuk mengatur pekerjaan kode, seperti 'Trunk-Based Development', 'GitHub Flow', dan 'GitFlow'. Panduan ini juga menunjukkan cara menulis pesan 'commit' (catatan simpanan kode) yang menjelaskan apa yang berubah dan mengapa, serta cara membuat 'pull request' untuk review kode.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Git Workflow

Implement effective branching strategies and pull request workflows for team collaboration.

When to Use This Skill

Use this skill when:

  • Establishing team Git workflows
  • Implementing branching strategies
  • Configuring pull request processes
  • Setting up release management
  • Improving code review practices

Prerequisites

  • Git installed
  • Repository hosting (GitHub, GitLab, Bitbucket)
  • Basic Git knowledge

Branching Strategies

Trunk-Based Development

Best for: Continuous deployment, small teams, mature CI/CD

main ─────●─────●─────●─────●─────●─────●─────●
          β”‚     β”‚     β”‚     β”‚     β”‚     β”‚
          └─●   └─●   └─●   └─●   └─●   └─●
         feature branches (short-lived)
# Create short-lived feature branch
git checkout main
git pull origin main
git checkout -b feature/add-login

# Work and commit frequently
git add .
git commit -m "feat: add login form"

# Keep branch updated
git fetch origin
git rebase origin/main

# Merge quickly (same day ideally)
git checkout main
git pull origin main
git merge feature/add-login
git push origin main
git branch -d feature/add-login

GitHub Flow

Best for: Continuous delivery, web applications

main ─────●─────●───────────●─────────────●─────●
          β”‚           ↑           ↑       ↑
          β””β”€β”€β”€β—β”€β”€β”€β—β”€β”€β”€β”˜           β”‚       β”‚
              feature/login       β”‚       β”‚
                                  β”‚       β”‚
          β””β”€β”€β”€β—β”€β”€β”€β—β”€β”€β”€β—β”€β”€β”€β—β”€β”€β”€β”€β”€β”€β”€β”˜       β”‚
              feature/dashboard           β”‚
                                          β”‚
          β””β”€β”€β”€β—β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              hotfix/security-patch
# Create feature branch from main
git checkout main
git pull origin main
git checkout -b feature/user-dashboard

# Push and create PR
git push -u origin feature/user-dashboard

# After review, merge via PR (squash recommended)
# Delete branch after merge

GitFlow

Best for: Scheduled releases, versioned products

main     ────────●────────────────●──────────────●
                 ↑                ↑              ↑
release  ────────┼────●───●──────┼──────────────┼
                 β”‚    β”‚   β”‚      β”‚              β”‚
develop  ───●────●────┼───●──●───●───●───●───●──┼
            β”‚         β”‚      β”‚       β”‚   β”‚      β”‚
feature  β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚       β”‚   β”‚      β”‚
                             β”‚       β”‚   β”‚      β”‚
hotfix   β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”˜
                                     β”‚   β”‚
feature  β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”˜
# Initialize GitFlow
git flow init

# Start feature
git flow feature start user-auth

# Finish feature (merges to develop)
git flow feature finish user-auth

# Start release
git flow release start 1.0.0

# Finish release (merges to main and develop)
git flow release finish 1.0.0

# Hotfix
git flow hotfix start security-fix
git flow hotfix finish security-fix

Commit Conventions

Conventional Commits

<type>(<scope>): <description>

[optional body]

[optional footer(s)]

Types:

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation
  • style: Formatting
  • refactor: Code restructuring
  • test: Adding tests
  • chore: Maintenance

Examples:

git commit -m "feat(auth): add OAuth2 login support"
git commit -m "fix(api): handle null response from payment service"
git commit -m "docs: update API documentation for v2 endpoints"
git commit -m "refactor(db): optimize user query performance"

# Breaking change
git commit -m "feat(api)!: change response format for user endpoint

BREAKING CHANGE: The user endpoint now returns an object instead of array"

Commit Message Template

# Create template file ~/.gitmessage
# Subject line (50 chars max)

# Body (72 chars per line max)
# - What changed
# - Why it changed
# - Any side effects

# Footer
# Fixes #123
# Co-authored-by: Name <email>

# Configure Git to use template
git config --global commit.template ~/.gitmessage

Pull Request Workflow

PR Template

<!-- .github/pull_request_template.md -->
## Description
Brief description of changes

## Type of Change
- [ ] Bug fix (non-breaking change)
- [ ] New feature (non-breaking change)
- [ ] Breaking change
- [ ] Documentation update

## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Manual testing performed

## Checklist
- [ ] Code follows project style guidelines
- [ ] Self-review performed
- [ ] Documentation updated

…
Pertanyaan umum

Apa itu 'commit'?

Anggap saja seperti menyimpan satu versi pekerjaan Anda. Setiap 'commit' memiliki pesan yang menjelaskan apa yang diubah.

Apa itu 'branch'?

Branch seperti salinan terpisah dari kode Anda untuk mengerjakan fitur baru atau memperbaiki masalah tanpa memengaruhi versi utama.

Apa itu 'pull request'?

Pull request adalah permintaan agar perubahan Anda di 'branch' ditinjau oleh tim dan digabungkan ke kode utama.

Detail

Deskripsi asli dari pembuat

Implement Git branching strategies, PR workflows, and release management patterns.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4742
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa