Git workflow
A Git workflow
is a way of using Git to accomplish work in a consistent and productive manner. It defines how your team interacts with Git and how changes flow between different branches and repositories.
Some popular Git workflows include:
-
Centralized Workflow. All developers work on a single branch, typically the
main
branch. This workflow is the simplest, but you don't get the benefits of feature isolation and parallel development. It is most often used by teams who are used to working with the old centralized version control systems. -
Feature Branch Workflow. Each new feature is developed on its own branch, then merged into the
main
branch when complete. This is the most common workflow for teams using Git. It allows developers to work on multiple features simultaneously without interfering with each other. -
Gitflow Workflow. This is a more structured approach with long-running branches (
main
&develop
), and short-lived branches (feature
,release
, andhotfix
). This workflow is suitable for larger projects with multiple releases and parallel development efforts. It provides a clear path for new features and bug fixes from development to production. However, it is quite complex and may be overkill for smaller projects. -
Forking Workflow. Each developer has their own fork (copy) of the repository and submits pull requests to the main repository, where the changes are reviewed and merged by someone who has write access to the main repository. This workflow is common in open-source projects where contributors don't have write access to the main repository. It allows for a high degree of isolation and control over contributions.
Hi! I'm Alex, creator of GitByBit.
And this is Gitopedia—a reference that summarizes knowledge in my Git course.
Gitopedia is designed to be a personal knowledge base. When you progress through the main Git course in VS Code, you unlock all of these topics, one by one, bit by bit. This gives you time to digest the information and gradually build the mental model of Git. Here's an example of how it works:
Learning directly in VS Code lets you practice Git exactly as you would in real life, doing real jobs, writing real code. In addition, the course has access to your actual terminal, so it can point out mistakes, suggest workarounds, etc.
The course is FREE, there are no Ads or other bullshit. There are optional premium add-ons you can purchase, mainly to support my work (regrettably, I have to eat every day), but that's totally up to you.