#GitTips

Hacker Newsh4ckernews
2025-05-02
Sascha Stumplersasstu@hessen.social
2025-03-09

FIX: The following untracked working tree files would be overwritten by checkout GIT dlvr.it/TJQWwG via PlanetPowerShell #Git #GitTips #VersionControl #Developer

@tenacity @gperson Next time just add it to the git repository. #gittips

Please, don't squash meaningful commits. It helps a lot to understand what the purpose of actual code is. And you'll be glad to find small commits using git bisect when you're looking after a tough bug.

#git #gitTips

2024-05-29

Quick git tip. If you want to remove any local branches that have since been merged you can run this.

```
git branch --merged | egrep -v "(^\*|dev|main)" | xargs git branch -d
```

I have it as a TextExpander shortcut, but you could also add an alias

It looks for any branch that isn't dev or main (add any you always want to keep around) that has been merged in and deletes them.

This is helpful if you rely on tab-to-autocomplete a lot

#Git #GitTips

Ottoottok
2024-03-01

🔥💻 Just dropped new post with to boost & enhance your workflow: optimizedbyotto.com/post/advan

Tom Nijhof-Verheeswagenrace@tfwnogf.nl
2023-12-11

How you can easily clean up your local machine by removing those merged branches. Keep your workspace tidy and efficient! 💪

Check out our blog for more details and examples. Happy coding! 💻

#GitTips #LocalBranches #RemoteRepository #CleanWorkspace #Efficiency
medium.com/@nijhof.dns/remove-

Free Pietje 🇵🇸 🍉FreePietje@x0f.org
2021-04-27

@jb55
Can you(/we) use the #GitTips hashtag?
Then it'll be easier in the future to find these gems :)

Ben Zaningnomon
2019-07-05

Would anyone be interested in a weekly thing..?

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst