Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungWhat is Programming And How i can Enjoy it?(24.09.2026 um 11:54 Uhr)
Sichere ProgrammierungYou Don't Need Adobe Commerce Cloud to Survive Black Friday(24.09.2026 um 11:55 Uhr)
Malware / Trojaner / VirenBeyond Lazarus: Organization of DPRK cyber capabilities(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenBeyond Lazarus: Organization of DPRK Cyber Capabilities(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenThe fake worker threat and the rise of human infiltration(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenPolinRider Spreads Through Compromised GitHub Accounts and Packagist(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenWeaselBiscuit Strips BeaverTail and OtterCookie Down to Essentials(24.09.2026 um 11:59 Uhr)
Sichere ProgrammierungWhat is Programming And How i can Enjoy it?(24.09.2026 um 11:54 Uhr)
Sichere ProgrammierungYou Don't Need Adobe Commerce Cloud to Survive Black Friday(24.09.2026 um 11:55 Uhr)
Malware / Trojaner / VirenBeyond Lazarus: Organization of DPRK cyber capabilities(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenBeyond Lazarus: Organization of DPRK Cyber Capabilities(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenThe fake worker threat and the rise of human infiltration(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenPolinRider Spreads Through Compromised GitHub Accounts and Packagist(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenWeaselBiscuit Strips BeaverTail and OtterCookie Down to Essentials(24.09.2026 um 11:59 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Leverage git worktree to parallelize work with Codex, Claude Code, etc.

Over the past two weeks, I’ve noticed a huge shift in how developers work. We’re becoming orchestrators, guiding code assistants like Codex or Claude Code to build features and fix bugs. If you haven’t seen it yet, it’s even possible to wo…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Over the past two weeks, I’ve noticed a huge shift in how developers work.

We’re becoming orchestrators, guiding code assistants like Codex or Claude Code to build features and fix bugs.



If you haven’t seen it yet, it’s even possible to work on several features in parallel,

on their own branches, without cloning the project multiple times.



Behind that workflow is a Git tool that’s often overlooked: git worktree.



I’ll walk through how this feature works so you can efficiently parallelize multiple tasks on the same project.







1. Understanding git worktree





The problem



In a traditional Git repository, you have:




  • the source code in a working directory: /Users/qlerebours/Projects/traveledmap for example.

  • a checked-out branch: feat/my-main-feature.

  • the .git folder that contains the project history.



Switching branches changes the files in your current directory, so how do you take advantage of tools like Codex and

Claude Code to work on multiple features in parallel?



One solution we can rule out is cloning the project into a second folder. The reason is simple:

cloning twice means two .git folders (which can be large), and the whole point of git worktree is to replace manual

clones.





What git worktree does



git worktree lets you attach multiple working directories to the same Git repository while keeping a single

shared history
(.git).



For example, when I want to add missing form validations in parallel:




git worktree add ../traveledmap-fix-wording fix/add-form-validations






Here’s the state of the folders after running that command:




/Users/qlerebours/Projects/traveledmap/              (branch feat/my-main-feature)
/Users/qlerebours/Projects/traveledmap-fix-add-form-validations/ (branch fix/add-form-validations)




and the repository state:




  • A single .git folder in /Users/qlerebours/Projects/traveledmap/

  • Shared history

  • Each folder uses its own branch

  • Independent files

  • Commits visible instantly across all worktrees



This setup lets your code assistant work on two features in parallel.






How to use it: a concrete use case






Scenario




  • I’m working on my main feature on branch feat/my-main-feature

  • I want to fix a missing-validation issue reported by Product Owners

  • Codex is used to update the wording and its translations (same workflow with Claude Code and others)






Make the changes





  1. In Codex, I start a new conversation in my project and choose Worktree and from develop




    • Worktree: to work in parallel

    • from develop: the base for my new branch
      Creating a worktree



  2. When I send my prompt, Codex announces it’s creating the worktree, which I can confirm with

    git worktree list

    Created worktree


  3. When I go into the worktree folder (/Users/qlerebours/.codex/worktrees/c6a5/traveledmap),

    I see the changes are done and ready to test

    Changes done







Test the changes



Here are the steps if you want to test the changes without pulling them locally. Otherwise, you can go straight to

"Take back control".




  1. Make sure you’re in the worktree folder

  2. Since this folder starts from the develop branch, I need to set up what’s required, for example:


    • cp .env.example .env

    • pnpm i



  3. Then I just run the project with pnpm run dev to test and validate the changes

  4. If new changes are needed, Codex will add them to the existing ones so you can test again






Take back control



If you want to take back control and make the changes yourself, you have several options:




  1. Open the worktree folder in your preferred code editor and make the desired changes.

  2. Use the "Hand off to local" button at the top right of the Codex conversation, which commits the changes to a

    branch you can pull locally.


    Hand-off


  3. Use the new "Create a branch" button, which also creates a branch and pushes it if you want to open a PR directly.

    Either way, options 2 and 3 are effectively the same: they push changes to a branch you can pull locally or access on

    Github / Gitlab.




Create branch



The full documentation for this part is available here for Codex.






Conclusion



Understanding git worktree now means understanding how to work efficiently with AI development assistants.



I hope this article is useful. Writing it helped me clarify things I didn’t fully grasp myself.

If you have any questions, feel free to reach out by email or on LinkedIn.

SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - Leverage git worktree to parallelize work with Codex, Claude Code, etc.
id: f5abd5fa-1a2c-4fa5-bcbb-d4c7df6cce77
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "Leverage git worktree to paral" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Leverage git worktree to parallelize wor.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Leverage git worktree to parallelize work with Codex, Claude Code, etc.

Thematisch verwandte Begriffe: Leverage, worktree, parallelize, work · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY Kritische Sicherheitsmeldung
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick