Skip to main content
added 99 characters in body
Source Link
Michael Borgwardt
  • 51.4k
  • 13
  • 127
  • 178

Since you're working on this by yourself, it's up to you to make up your own git branching strategy.

Strict rules like "never commit directly to main" are mostly for actual collaborative work, to e.g. make sure that every code change is reviewed.

For yourself, it's totally OK to use branches only for features that you'll be working on for a longer time but don't want to have in the main branch right away, and commit directly to main for smaller changes.

Do whatever you think is the best balance between ease of use and protecting you from problems.

Since you're working on this by yourself, it's up to you to make up your own git branching strategy.

Strict rules like "never commit directly to main" are mostly for actual collaborative work, to e.g. make sure that every code change is reviewed.

For yourself, it's totally OK to use branches only for features that you'll be working on for a longer time but don't want to have in the main branch right away, and commit directly to main for smaller changes.

Since you're working on this by yourself, it's up to you to make up your own git branching strategy.

Strict rules like "never commit directly to main" are mostly for actual collaborative work, to e.g. make sure that every code change is reviewed.

For yourself, it's totally OK to use branches only for features that you'll be working on for a longer time but don't want to have in the main branch right away, and commit directly to main for smaller changes.

Do whatever you think is the best balance between ease of use and protecting you from problems.

Source Link
Michael Borgwardt
  • 51.4k
  • 13
  • 127
  • 178

Since you're working on this by yourself, it's up to you to make up your own git branching strategy.

Strict rules like "never commit directly to main" are mostly for actual collaborative work, to e.g. make sure that every code change is reviewed.

For yourself, it's totally OK to use branches only for features that you'll be working on for a longer time but don't want to have in the main branch right away, and commit directly to main for smaller changes.