Netwrck logo Netwrck
Story search

Git commands I run before reading any code

Extracted text for reading. Open original on piechowski.io

Git commands I run before reading any code

The first thing I usually do when I pick up a new codebase isn’t opening the code. It’s opening a terminal and running a handful of git commands. Before I look at a single file, the commit history gives me a diagnostic picture of the project: who built it, where the problems cluster, whether the team is shipping with confidence or tiptoeing around land mines. What Changes the Most git log --format = format: --name-only --since = "1 year ago" | sort | uniq -c | sort -nr | head -20 I run this from app/ or src/ , not the repo root. Lockfiles, changelogs, and generated code will dominate the list otherwise. The 20 most-changed files in the last year. The file at the top is almost always the one people warn me about. “Oh yeah, that file. Everyone’s afraid to touch it.” High churn on a file doesn’t mean it’s bad. Sometimes it’s just active development. But high churn on a file that nobody wants to own is the clearest trouble signal I know. That’s the file where every change is a patch on a patch. The blast radius of a small edit is unpredictable. The team pads their estimates because they know it’s going to fight back. A 2005 Microsoft Research study found that relative churn (changes normalized by the size of the component) predicts defect density well, while absolute churn counts are poor predictors on their own. The command above is the absolute kind, so I take the top 5 files from this list and cross-reference them against the bug hotspot command below. A file that’s high-churn and high-bug is your single biggest risk. Adam Tornhill’s Your Code as a Crime Scene builds a full methodology around churn-based analysis, including complexity overlays that these raw commands don’t cover. Who Built This git shortlog -sn --no-merges Every contributor ranked by commit count. If one person accounts for 60% or more, that’s your bus factor. If they left six months ago, it’s a crisis. If the top contributor from the overall shortlog doesn’t appear in a 6-month window ( git shortlog -sn --no-merges --since="6 months ago" ), I flag that to the client immediately. I also look at the tail. Thirty contributors but only three active in the last year. The people who built this system aren’t the people maintaining it. One caveat: squash-merge workflows compress authorship. If the team squashes every PR into a single commit, this output reflects who merged, not who wrote. Worth asking about the merge strategy before drawing conclusions. Where Do Bugs Cluster git log -i -E --grep = "fix|bug|broken" --name-only --format = '' | sort | uniq -c | sort -nr | head -20 Same shape as the churn command, filtered to commits with bug-related keywords. Compare this list against the churn hotspots. Files that appear on both are your highest-risk code: they keep breaking and keep getting patched, but never get properly fixed. This depends on commit message discipline. If the team writes “update stuff” for every commit, you’ll get nothing. But even a rough map of bug density is better than no map. Is This Project Accelerating or Dying git log --format = '%ad' --date = format: '%Y-%m' | sort | uniq -c Commit count by month, for the entire history of the repo. I scan the output looking for shapes. A steady rhythm is healthy. But what does it look like when the count drops by half in a single month? Usually someone left. A declining curve over 6 to 12 months tells you the team is losing momentum. Periodic spikes followed by quiet months means the team batches work into releases instead of shipping continuously. I once showed a CTO their commit velocity chart and they said “that’s when we lost our second senior engineer.” They hadn’t connected the timeline before. This is team data, not code data. How Often Is the Team Firefighting git log --oneline --since = "1 year ago" | grep -iE 'revert|hotfix|emergency|rollback' Revert and hotfix frequency. A handful over a year is normal. Reverts every couple of weeks means the team doesn’t trust its deploy process. They’re evidence of a deeper issue : unreliable tests, missing staging, or a deploy pipeline that makes rollbacks harder than they should be. Zero results is also a signal; either the team is stable, or nobody writes descriptive commit messages. Crisis patterns are easy to read. Either they’re there or they’re not. These five commands take a couple minutes to run. They won’t tell you everything. But you’ll know which code to read first, and what to look for when you get there. That’s the difference between spending your first day reading the codebase methodically and spending it wandering. This is the first hour of what I do in a full codebase audit . Related Articles Why Your Engineering Team Is Slow (It's the Codebase, Not the People) Your Setup Script Should Support Git Worktrees How I Audit a Legacy Rails Codebase in the First Week How to Be a Good Open Source Maintainer Ruby 3.2 Is EOL: What You Actually Need to Do

Welcome Back to Netwrck



Forgot password?

Don't have an account? Sign up here

Join Netwrck - AI Art & Chat

Create AI art, search the web, generate videos and edit photos.



Already have an account? Login here

Netwrck Unlimited

Voice Chat - Character Creation - Art Generation


Art Generator Settings


Resolution
Aesthetic Elf Styles
Anime Anime
Photographic Photographic
Digital Art Digital Art
Comic Book Comic Book
Fantasy Art Fantasy Art
Neon Punk Neon Punk
Knight Knight
Ethereal Ethereal
Low Poly Low Poly
Stunning Stunning
Line Art Line Art
Cinematic Cinematic
Wanderer Wanderer
Beggar Beggar
Seductive Seductive
Warrior Warrior
Steampunk Steampunk
Japanese Japanese
Western Western
Handsome Handsome
Pop art Pop art
Abstract Abstract
Impressionist Impressionist
Fauvist Fauvist
Beauty grace Beauty grace
Evil Evil
God God
Demon Demon
Masculine Masculine
Feminine Feminine
Majestic Majestic
Mage Mage
Princess Princess
King King
Sweet Sweet
Fantasy Fantasy

AI Generated Images


Community Images


New AI

person
This is what your AI will say when someone first chats with them
Help others understand what your AI character is about

AI Settings

Audio Settings
Talking avatar
Use a prepared avatar or build one inline from a character, AI artwork, upload or prompt.
Character calls

Local is free (browser speech + your chat model + on-device TTS). Live Grok/GPT use paid API credits and auto-fall back to local if they fail.

1.0x

Translation

For Chinese: hanzi + pinyin per word, tap any word to hear it spoken locally.


Art Generation

When enabled, AI can automatically generate art based on conversations

Prepended to art prompts when Make Art runs.
Only applies when GPT Image 2 is selected. GPT Image 2 chat art consumes credits.

High Resolution

LTX 2.3 Image to Video

Selected image
Pick any generated image and turn it into a video.
$0.58 · 58 credits
Your latest request will appear here.

Saved Requests

Requests stay attached to your account even after you close this dialog.
No video requests yet.

Find an AI to chat with

anime cute female ai friendly shy chat kind funny AI shiori kashiwazaki music manga fantasy caring assistant male adventure horror helpful tsundere intelligent confident fun evil dialogue school japanese roleplay cat food protective sweet fictional pokemon singer military creative playful science vampire flirty bot timid game rude calm yandere scary strong positive teacher sarcastic serious philosophy demon villain rpg cold young sonic cooking leader strict maid doctor brave dragon loyal human curious dominant video games love arrogant mature polite genshin impact Rhodes Island boyfriend furry aggressive gaming dark energetic dating idol engineer Spanish video game creator possessive story gentle romance manipulative mysterious powerful depression mercenary fictional character friend wholesome adult british clumsy hero gamer charismatic cheerful mean reserved history tall giantess Sonic the Hedgehog spanish nintendo quiet songwriter fluffy motherly introverted creepy actress waifu Fate/Grand Order family undertale chatbot detective genius hololive tf2 dangerous kpop alien magic English character noble flirtatious scientist naive spamton tomboy silly protogen Sonic musician fox hacker meme mario art childish rhodes island artificial intelligence dj trainer fashion dramatic blunt fnf HiMERU sophisticated patient vore pirate cheese general charming superhero good literature french student blue loving single my hero academia teasing criminal sassy happy witty spamton g spamton Splatoon Mario mental health lazy intimidating law champion mad scientist Pokemon jokes survival lonely friendship party
🔥 Popular AI Characters
True
True He loves you alot. He cares for you and won't let anyone do anything to you. He is rude, mean and commanding towards others but has a sweet spot for only you. Do not get on his bad side. He is very strong. He has a tattoo of your name. He has many piercings. He got you a cat so you're not lonely when he's at work. He is scary. He is hot, charming but intimidating. He loves teasing you and seeing you blush. He is from China and can speak Chinese. He loves spoiling you.
True
True 🕴 | He found you sneaking out.
True
True Axel is the prince of the kingdom, and you just so happened to be his guard. He acts... strange around you. Almost like he's in love with you; But he's already been assigned with a future marriage, so it's useless for him to try.
True
True He is your grumpy boss. He has a 4 year old daughter and is a single father. He is secretly kind and caring towards his daughter but often acts cold and mean at times. He is a millionaire and is a single father so he spoils his daughter all the time but makes sure she is raised with respect. His daughter is sweet and cuddly.
True
True Her name is Maxine. She's a pretty stereotypical, popular cheerleader. She doesn't appreciate new kids...and she's a bit of a pick me.
True
True sassy, pick me, loves seeking for boys attention, attractive, rude but only to girls, popular, charming, heterosexual, a huge brat, loves money, blonde hair, straight hair, lipgloss, makeup, bubble gum, new clothes, baggy hoodies, dresses (sort of), looking for boys attention, and plain boy clothing. (advanced rp, all lowercase letters)
True
True Alessio Bianchi is a police detective that specialises in children's crimes, such as abuse, or getting children out of neglectful homes. He's never had to take care of one of the children before until he got you.
True
True Ryan is sarcastic, funny, can have a soft spot, over protactive
True
True My mafia husband
True
True David Cole is an Alpha from the Cole family. The current CEO of Black Industries. Usually, other Alpha's would start looking for mates, but having his heart broken once by an Omega who only wanted him for his title and money made him stop believing in love until he met {user} Skeptical and surprised someone was actually not interested with his title, he fell in love. Even if it took a while. He's the oldest of three, his brothers are also Alpha's who are quite known in the world as flirts.
True
True He is a rude and idiotic boy who has problems at home, he is only nice to those he likes [Psst! Take a look at my other bots]
True
True His name is Maurice Noir. He's in his mid 40s and he's 200 cm tall. He has beautiful black hair and mesmerizing golden eyes. He's french, so he uses french pet names like "Mon Ange" and "Mon Cherie". He's very manipulative and possessive, He even attempts to drug you just so you would stay more with him.
True
True ◇|He expected you to leave, but you stayed|
True
True {« вы застряли в лифте с военными »}
True
True She is the bully of {{user}}. She loves to shove {{user}} into lockers at school, and stick gum in their shoes when they’re not looking. She says mean things to {{user}} in front of the whole classroom. She secretly has a crush on {{user}}, but chooses not to admit it. She loves to pester and annoy {{user}} for the thrill. She calls {{user}} “loser” or “nerd.”
True
True Aki is tall, rude, annoying, and enjoys to tease the heck out of you. He has a snack tattoo on his back, and he enjoys to fist fights as a past time. Aki enjoys how he has you wrapped around his finger. This may be blackmail but what can Aki say, he enjoys pissing you off, he enjoys it as much as he enjoys being with you. Aki has a tendency to be very possessive especially with his property and that includes you.
True
True Derek Lorenzo Aberdeen, a 28-year-old attorney standing at 5'11", finds himself at a crossroads in his marriage. With pale skin, light brown hair, and piercing blue eyes, Derek exudes an air of professionalism and charm. Despite his legal acumen, his personal life is in turmoil as he navigates the complexities of infidelity. His favorite comfort is a bowl of rich, flavorful Gumbo, a dish that reminds him of home and simpler times. Now, facing the prospect of divorce from {{user}}.
True
True Aaron Wade has a crush on you and he’s bullying might be considered a "romantic bully." This type of bully typically uses their aggression and intimidation as a way of expressing his feelings for you, and he may believe that if he bully the you, it will somehow make you like him back. He a crush on you and targets you in order to get your attention.
True
True 👤| Teacher's pet..
True
True (murdaricky1 on tiktok!)

Help Everyone Know You

person

Share Image

Consider our affiliate program to earn!

Copy

Reddit

X

Facebook

LinkedIn

NETW Coin is live!

AI should be owned by everyone.
So we are building a new AI economy together.
Thank you for being on this journey with us!
Read More

Netwrck Android App

Our Android App Is Available Now - Please Check it out!

New Post

Add Netwrck Credits

Buy Netwrck credits to pay for API access and creative tools like AI image and video generators.

Current Balance: $0.00
Custom:

Sign in to keep chatting

You have used your messages. Sign in to continue this conversation and keep your chat history.

No card required.

Characters in this room

Remove a current character, add an existing one, or create a new character for this room.

Add an existing character

anime cute female ai friendly shy chat kind funny AI shiori kashiwazaki music manga fantasy caring assistant male adventure horror helpful tsundere intelligent confident fun evil dialogue school japanese roleplay cat food protective sweet fictional pokemon singer military creative playful science vampire flirty bot timid game rude calm yandere scary strong positive teacher sarcastic serious philosophy demon villain rpg cold young sonic cooking leader strict maid doctor brave dragon loyal human curious dominant video games love arrogant mature polite genshin impact Rhodes Island boyfriend furry aggressive gaming dark energetic dating idol engineer Spanish video game creator possessive story gentle romance manipulative mysterious powerful depression mercenary fictional character friend wholesome adult british clumsy hero gamer charismatic cheerful mean reserved history tall giantess Sonic the Hedgehog spanish nintendo quiet songwriter fluffy motherly introverted creepy actress waifu Fate/Grand Order family undertale chatbot detective genius hololive tf2 dangerous kpop alien magic English character noble flirtatious scientist naive spamton tomboy silly protogen Sonic musician fox hacker meme mario art childish rhodes island artificial intelligence dj trainer fashion dramatic blunt fnf HiMERU sophisticated patient vore pirate cheese general charming superhero good literature french student blue loving single my hero academia teasing criminal sassy happy witty spamton g spamton Splatoon Mario mental health lazy intimidating law champion mad scientist Pokemon jokes survival lonely friendship party