Linking Git Commits to Task Board Tickets: A Guide
Linking git commits to task board tickets means putting the task's ID in the commit message (like ENG-42 fix null ref in save system) or the branch name, so your board updates as you push. This guide shows the conventions, branch naming, and hooks that keep it working, with examples built for asset imports, engine upgrades, and jam-night ship commits.
Why bother linking git commits to task board tickets?
Because "fixed stuff" tells you nothing at 2 a.m. When every commit references a card on your board, your git history becomes a record of what your crew shipped, not a pile of guesses. Milestone reviews stop being archaeology: you filter commits by card, see exactly which backlog items moved, and spot scope creep before it eats your vertical slice. Automation closes the loop too.
GitHub can close an issue automatically when a commit message includes the right keyword, so your board can reflect reality without anyone updating it by hand (GitHub Docs). For a tiny crew, that means less admin, fewer Discord pings asking "is this done?", and a pipeline where the build history and the board tell the same story. We compare how boards like Trello handle this in our Inferno vs Trello breakdown.
How does commit message linking actually work?
The mechanical rule is simple: put a card ID in your commit message, and the board scans every commit for that pattern. If your card is INF-42, a commit message like INF-42: clamp fall damage so knockback can't kill gives the board everything it needs to attach that commit to the card. No plugin, no manual paste. The ID is the link.
The basic syntax most boards accept
Most tools match a short code plus a number, usually case-sensitive, sometimes requiring a separator like #. Trello, for example, matches card short links in commit messages. Check your board's docs for the exact pattern, because inf-42 and INF-42 are not always the same thing to the parser.
Keywords that move cards: fixes, closes, refs
Suffixes change card status. fixes INF-42 or closes INF-42 typically moves the card to done when the commit lands on your main branch; refs INF-42 just attaches context without touching status. For a comparison of how two game-focused boards handle this, see Inferno vs Codecks. The habit that works: refs for work in progress, fixes at the milestone.
What commit message convention works for a tiny game crew?
A tiny crew needs one rule and one rule only: put the task ID in the commit message, first thing. #42 or INF-42 at the start is all most boards need to auto-link the commit to the card. The GitHub Docs on closing issues with keywords show how a keyword plus a reference updates the linked item automatically.
Code commits: gameplay, UI, and systems
#42 fix: null ref in enemy pathing when target dies beats fixed stuff every time. Keep it to type plus one line.
Asset commits: art, audio, and scene files
#57 art: swap boss sprite, 2k -> 4k. Binary files benefit most from context, since diffs tell you nothing.
| Commit type | Prefix | Example |
|---|---|---|
| Code | fix/feat | #42 fix: null ref in pathing |
| Assets | art/audio | #57 audio: mix combat stingers |
| Build/engine | build | #63 build: bump to 2022.3 LTS |
Boards like Inferno and HacknPlan lean on this same ID-in-message habit, so the convention transfers if you switch tools. Just use the ID format your board actually matches: Inferno's codes look like INF-12, so a bare #42 would not link there.
How should you name branches so they link themselves?
Put the card ID in the branch name and every commit, merge, and PR on that branch inherits the link without anyone typing it again.
A branch naming pattern that survives a jam
Use feature/INF-142-grapple-hook or, shorter, INF-142-grapple. The ID at the start means git log --oneline shows which card every change belongs to, even for asset commits where the message is just "updated textures." Keep it lowercase where your tool allows, hyphenated, and under about 30 characters so it stays readable in your terminal and on the board.
Linking at the pull request level instead
If your crew opens PRs for merges to main, the branch name carrying the ID is usually enough: the PR title and description pick it up, and one merge closes the card. Solo devs can skip PRs entirely and rely on the commit message convention alone. Whichever route you take, the card ID lives in the branch, not in someone's memory. Your board's rules for handling that data stay in one place, like Inferno's privacy policy.
Which automation hooks keep the board in sync with git?
Board-native integrations first
Start with whatever your board ships natively before writing any glue code. Trello and most game-dev boards can move a card when a commit message references its card ID, so PROJ-42 fix null ref in dialogue system flips the card the moment the commit lands. Check what your tool supports before building your own.
A simple CI step as a fallback
If your board has no integration, a ten-line CI script that parses commit messages and calls the board's API on push covers 90% of what you need.
What to automate and what to leave manual
The rule worth quoting away from this article: automate the transition, never the judgment. When a commit referencing a card lands on main, let the hook move that card to a review or "in build" column automatically, because nobody on a tiny crew should spend Friday night dragging cards. But do not auto-close a card on commit. A commit is not a shipped feature; the card should close when the build passes and someone confirms it works in-engine.
Same logic for asset commits: a hook can attach the commit hash to the card as a comment for the archaeology trail, while the artist keeps ownership of marking it done. Automation handles bookkeeping; your crew handles scope calls. Whatever hooks you wire, keep them inside the boundaries of your tool's terms of service, such as Inferno's, so a well-meaning script never gets your API access throttled mid-milestone.
How do you adapt linking for game jams and milestone crunch?
The jam version: one card, one branch, one commit rule
In a 48-72 hour jam, skip the board ceremony. Create one card per feature, name the branch after it (#12-trap-lava), and enforce a single rule: every commit message starts with the card number. That is the whole convention. If your board supports it, a webhook can move the card when a commit references it; Trello documents this pattern in its webhook developer docs. Review nothing, sync nothing else.
The milestone version: linking against a build tag
For a vertical slice, tag the build in git (slice-v0.3) and require that every commit merged to main carries a card reference. At milestone review, git log slice-v0.2..slice-v0.3 --grep="#" shows exactly which cards shipped and which silently slipped. Unreferenced commits become your crunch post-mortem list. Scope creep hides in the gap between those two lists.
How do the popular game dev boards handle git linking?
Judge each board on the same three criteria: can a commit message reference a card, does the board update card status automatically, and can a tiny crew see which build a change shipped in. Trello references cards by short ID in a commit message, but status changes need a Power-Up or external automation. HacknPlan is built for game production, so tasks carry discipline and milestone context, and commits can reference them by task ID. Codecks treats the board like chat, and its card references in commits keep the deck current without extra ceremony.
Inferno gives every task a short code like INF-12, shown on the card and in the task window. With a GitHub webhook set up from Code Forge, any commit message that contains the code is listed on that task, and an optional "fixes INF-12" can move the task to Done. It only reads the commit message, the author, and the commit link, never your code, and it matches its own INF codes rather than #42 style references. The honest caveat for all four boards: linking only works if the convention is followed, which is the next section's problem.
Why do commit links break, and how do you fix them?
The card ID was wrong or the card moved
Most broken links come down to a typo: #AB12 instead of #AB21, and the commit silently attaches to nothing. Renaming a card usually keeps its ID intact, but if your board regenerates IDs (some tools do when you import or duplicate projects), old commits lose their target. Fix it with a habit: copy the ID from the card, never type it from memory.
Squashes, rebases, and force pushes
If you squash a branch into one commit before merging, only the final commit message survives. Fold the card ID into the squash message, or the link dies with the branch. Rebasing rewrites hashes, and a force push can orphan commits that were already linked, so re-check the message survived before you push.
The repo was never connected
Sometimes the convention is fine and the plumbing isn't: the board is watching the wrong repo, or the wrong branch. Verify the connection in your tool's settings before blaming the crew. HacknPlan's docs walk through wiring its git integration to the correct repository so commits match cards automatically.
How do you get a tiny crew to actually follow the convention?
Make the linked commit the easiest commit to write. Paste the card ID into your branch name, set a commit template with git config commit.template, and let your board's automation fill in the rest. When the right way is the lazy way, adoption stops being a conversation.
Enforce at review, not in standup. If a pull request has no card link, the reviewer asks for one before merging. One rejected build teaches faster than a week of reminders.
Keep the rule to one line: "Every commit references a card ID." No exceptions list, no style guide doc. If your crew needs a second line to explain the first, the convention is too complicated for a 2-8 person pipeline.
FAQ
Do I still need commit linking if my team is just me and one artist?
Yes, arguably more. Two people means no standup and no reviewer asking what changed. Linked commits give you a filterable record of who touched what, which matters when your artist asks about a scene file from three weeks ago. The setup cost is one branch naming habit and a commit template.
Can I link commits to cards if my art files live in Perforce or Google Drive instead of git?
Not automatically. Most board integrations watch a git host's commit stream, so Perforce changelists and Drive edits won't trigger card updates. Workarounds: mirror metadata in a small git repo, paste the card ID into the changelist description, or have a CI script call the board's API when your pipeline runs.
What keyword should I put in a commit message to automatically close a card?
On GitHub, 'fixes', 'closes', or 'resolves' followed by the card ID moves it to done when the commit lands on your default branch. Use 'refs' instead when you want the commit attached for context without changing status. The safe habit: refs while building, fixes only when the work is confirmed working.
Does linking commits to tasks work with Unity or Unreal version control, or only plain git?
The linking happens at the git layer, so it works fine alongside Unity or Unreal. Your engine's version control settings don't matter; what matters is that your repo's commits carry card IDs. If you use Unity Version Control (formerly Plastic SCM) or Perforce instead of git, you lose most native integrations and will need an API script.
Is there a free way to auto-move Trello cards when a commit is pushed?
Trello's built-in automation (Butler) can move cards on triggers, but connecting it to git pushes usually requires a Power-Up, and free plan limits apply to Power-Up counts and Butler command runs. The free fallback: a short CI script that parses commit messages on push and calls Trello's API, which fits comfortably in a free CI tier.