Use Git More Efficiently: A Simple Git Workflow

Negar Jamalifard
4 min readJun 6, 2019

Git without a doubt is one of the essential tools for every developer. As helpful as Git is, not following best practices will make it completely useless. That’s why there are different standard workflows to make most out of Git and its awesome features.

For a long time, my inception of Git and GitHub was a tool that back-ups the codes and let us access them online; Which was not completely wrong, but there are so much more about them that I didn’t know until I start my work as a developer in YasnaTeam.

In our team, about 10 developers are actively working on the same repository. Having the same habit and so-called culture is necessary to avoid conflicts and chaos. With over 100 commits per day, things could get out of hand very soon. To avoid such problems we implement a modified version of Gitflow.

How it works

Instead of having one single master branch, we have another extra branch nameddev. These both branches are locked and no one can push directly into them.

Image Source

master is reserved for production only. ‌After testing new features, the repository owner updates master before each release.

--

--