?? Post 4 - Writing Better Commits & Keeping a Clean Git History

?? Post 4 - Writing Better Commits & Keeping a Clean Git History

Your Git history tells a story. Keep it clean and useful!


?? Writing Good Commit Messages

Bad:

? Update

? Fixed something


Good:

? Fix broken login validation on Safari

? Refactor navbar component to improve accessibility


?? Editing Commits

Forgot to include something in the last commit? Use:

git commit --amend        


To reorder or squash commits, use:

git rebase -i HEAD~3        


?? Next post: Advanced Git tricks like stash, cherry-pick, and hooks!

?? What’s your favorite Git command?

Alexandre Germano Souza de Andrade

Senior Software Engineer | Backend-Focused Fullstack Developer | .NET | C# | Angular | React.js | TypeScript | JavaScript | Azure | SQL Server

1 周

Nice article Bruno Freitas, thanks for sharing ??

回复
Vinícius Araújo

Desenvolvedor Front-end | HTML, CSS, JavaScript, React

1 周

Great content ??

回复
Gabriela J.

.NET Software Engineer | Full-Stack .NET C# & Angular | Microsoft AZ-900 & DP-900

1 周

Nice tips!

回复
Fabricio Dorneles

Senior Front-end Developer | React - NextJS - Typescript - NodeJS - AWS

1 周

Interesting Post! Thanks for share!

回复
Bruno Santos Silva

Software Engineer | Java | Kotlin | Spring | Microservices | AWS | Azure

1 周

Good Article

回复

要查看或添加评论,请登录

Bruno Freitas的更多文章

社区洞察

其他会员也浏览了