Git Commands That Cover 90% of a Developer's Daily Workflow
https://jsdev.space/15-git-commands/
#HackerNews #Git #Commands #Developer #Workflow #GitTips #VersionControl #DailyCoding
Git Commands That Cover 90% of a Developer's Daily Workflow
https://jsdev.space/15-git-commands/
#HackerNews #Git #Commands #Developer #Workflow #GitTips #VersionControl #DailyCoding
FIX: The following untracked working tree files would be overwritten by checkout GIT http://dlvr.it/TJQWwG via PlanetPowerShell #Git #GitTips #VersionControl #Developer
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
🔥💻 Just dropped new post with #GitTips to boost #productivity & enhance your #SoftwareDevelopment workflow: https://optimizedbyotto.com/post/advanced-git-commands/
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
https://medium.com/@nijhof.dns/remove-merged-branches-from-your-local-machine-0e380a970793?sk=c1d08add2653981e7064c240418fd552