DEV Community

Cover image for Developing Code Quality With Git.
Kunal Agrawal
Kunal Agrawal

Posted on

2

Developing Code Quality With Git.

In this article we will see about version control system like git. It's always difficult to write clean, readable and maintainable code.

Clean and Maintainable is necessary to collaborate with other developers. Whether you are working on a project, open source or your own multi million 💵 project 😁.

Creating a lot of branches

So if you're working in a project with a remote repository and a lots of folks working in it.

Always try to create a branch for any experiment, feature, or bug.
This will help you keep track down of things easily.

Squashing Commits

Always keep in mind to squash your commits, whether you're commiting on main branch. As it help to keep your main branch log clear and understandable.

Otherwise its meaningless to create separate branches for any experiment, feature or bug.

Writing Actions

This is not about version control, it's about automation.
If you're familiar with github actions. These are code that run on some virtual machine to perform some actions on your code.

These comes with triggers, like when there is a pull, push, merge or a issue in your repo. Also triggers can be periodic using cron.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay