SShortSingh.
Back to feed

Interrupted git fetches leave hidden temp files that can balloon repos to gigabytes

0
·38 views

Killing a git fetch or clone mid-transfer leaves behind orphaned temporary pack files — named tmp_pack_XXXXXX — inside the .git/objects/pack/ directory, which Git never indexes, tracks, or cleans up automatically. These read-only files can accumulate silently over repeated failed fetches, swelling a repository to several gigabytes while causing symptoms like slow update checks and cryptic fetch errors. The root cause is Git's two-step pack-writing process: temp files are only renamed to their final names after a successful transfer, so an interrupted process leaves them stranded. Standard cleanup commands like git gc and git repack do not remove these files because Git's default prune grace period of two weeks skips anything created recently. Running git prune --expire=now or git gc --prune=now — after confirming no git processes are active and running git fsck --full to rule out deeper corruption — is the recommended fix.

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 ·

Python Tool Exports Agoda Hotel Reviews and Sub-Scores to a Spreadsheet

A developer has published a tutorial on pulling Agoda hotel reviews, scores and sub-scores into a CSV file using Python. The guide notes that each Agoda hotel page combines Agoda's own guest reviews with Booking.com reviews republished on the site, each with separate scores and six sub-ratings. The approach uses a paid scraping tool, built by the author, that accepts hotel links, IDs or names and returns one row per review along with hotel-level data. The sample script also summarises average ratings by traveller type and flags hotels whose details may need checking. The post additionally suggests uses such as mining complaints from low-rated reviews.

0
ProgrammingDEV Community ·

On-Device AI Hardware Faces Physical Limits: Heat, Power Droop, and Bandwidth

A PCB manufacturer warns that moving large language and vision models onto portable devices exposes physical constraints that software teams often overlook. Chips sustaining high compute loads can produce intense heat, and without adequate thermal copper, vias, or heatsinks, they throttle performance or shut down. Sudden surges in current demand can also cause voltage droop that crashes systems, a failure that code changes cannot fix. The article adds that memory bandwidth becomes a critical bottleneck on edge hardware, which is more constrained than in PCs or servers. The author argues that hardware design must be planned alongside software to make on-device AI reliable.

0
ProgrammingDEV Community ·

How Byte Pair Encoding Builds the Token Vocabulary Behind Language Models

Before a language model processes text, a tokenizer splits it into integer IDs drawn from a fixed vocabulary, and the model never directly sees letters or whole words. Byte pair encoding builds that vocabulary by starting from single characters and repeatedly merging the most frequent adjacent pair until a target size is reached. The article notes that vocabulary size is a tradeoff: larger vocabularies pack text into fewer tokens but add parameters, and because the vocabulary is learned from data, languages like Urdu end up costing far more tokens than English. The method originated as a 1994 data compression technique and was adapted for neural machine translation in 2016 by Sennrich, Haddow, and Birch to handle rare words. The authors implemented the algorithm from scratch on the paper's example dictionary to demonstrate how frequent words become single tokens while rarer ones split into pieces.

0
ProgrammingDEV Community ·

Darwin-180B-RSI-R3 Ranks Second on SuperCLUE Math and Science Reasoning Test

VIDRAFT, a South Korean AI startup, released Darwin-180B-RSI-R3, a 180-billion-parameter Mixture-of-Experts model built on Alibaba's Qwen3.8-Flash-Next. Independent evaluation by SuperCLUE on November 5, 2026 placed it second overall and first among open-weight models in math and science reasoning, with a score of 73.68. The model was produced by retraining only the attention, linear-attention, and shared expert layers while keeping the feed-forward expert blocks that store factual knowledge intact. Its weights are available under a Qwen community license permitting commercial use, and a 4-bit quantized edge variant can run on a 32 GB RAM laptop without a GPU. The reported gain over its base model in math and science reasoning was 15.8 points.