SShortSingh.
Back to feed

Git Worktrees Let You Handle Interruptions Without Stashing Your Work

0
·64 views

Git has supported a feature called 'git worktree' since version 2.5, allowing developers to create a second working directory that shares the same repository database without cloning it. When interrupted mid-feature, a developer can run 'git worktree add' to check out a separate branch in a new folder, leaving the original work completely untouched. The hotfix can be made, committed, and pushed from that second directory, after which the developer returns to find their uncommitted changes exactly as they left them. Git enforces a safety rule preventing the same branch from being checked out in two worktrees simultaneously, avoiding race conditions on branch pointers. Once the hotfix is merged, the extra directory can be cleanly removed with 'git worktree remove', while the branch itself is preserved.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Kiteline adds prompt links that turn task text into a phone-openable coding agent request

Kiteline, an app for monitoring coding agents such as Claude Code and Codex from iOS devices, has introduced prompt links to simplify handing tasks between people. A link carries task text that opens on a phone as a web page with an "Open in Kiteline" button, which pre-fills the new-task form in the app. The recipient must still choose a local project and confirm before anything runs, and the task always executes on their own computer. The phone app also exposes permission modes, model settings, and command approvals, with plan mode suggested as a safe default for newcomers. The desktop side is open source, while the phone app is available on the App Store with no Android version yet.

0
ProgrammingDEV Community ·

SonicWall Patches Exploited SonicOS Flaw That Lets Attackers Bypass SAML and MFA on VPN Logins

SonicWall has issued fixes for a vulnerability in SonicOS SSL VPNs that use SAML login, which can let an attacker with valid credentials for a different authentication method skip SAML verification and any MFA enforced through it. The company says it is investigating reports of possible exploitation, and CISA has added the flaw to its Known Exploited Vulnerabilities catalog. The number of compromises and the attacker's follow-on actions have not been made public. Affected Gen7 and Gen8 devices should be updated to 7.3.4-7013 or 8.2.3-8015 or later, since SonicWall has offered no workaround and disabling SAML is not a lasting fix. Administrators are advised to compare identity provider logs with VPN session records to spot connections made without proper SAML authentication.

0
ProgrammingDEV Community ·

Crédit Mutuel Arkéa Probes Unauthorized Transfers From Its Own Accounts via Third-Party Platform

Attackers reached Crédit Mutuel Arkéa through a platform run by a third-party service provider and used the bank's own accounts to send unauthorized transfers to other financial institutions. The bank has not confirmed the reported figure of about 118 million euros, saying it only acknowledges the scale of the incident. Some funds were intercepted and blocked, and part may have been converted into cryptocurrency. The bank says customer accounts and its Fortuneo unit were not used as entry points, and that suspicious transactions were halted and the incident contained. The initial access vector and the vendor involved remain under investigation.

0
ProgrammingDEV Community ·

How to Check SSD Health on Windows 10 and 11 Using Built-In Tools and CrystalDiskInfo

Windows 10 and 11 users can check their SSD's condition in minutes without opening the computer. Windows 11 offers a quick drive health readout for NVMe SSDs, while CrystalDiskInfo provides a fuller view of status, temperature, and usage. Built-in PowerShell and command-line options give basic threshold results for those who prefer not to install software. Interpreting SMART attributes requires care, since CrystalDiskInfo shows raw values in hexadecimal by default and they should be converted to decimal first. Health above 90% is considered very good, 80–90% is normal for a drive a few years old, and a steadily declining trend or a Caution status signals the need to back up data.