Questions tagged [git]
Git is an open-source DVCS (Distributed Version Control System)
1,194 questions
7 votes
1 answer
510 views
Do these diagrams correctly model Git file state transitions?
I am in the process of engineering some UML state diagrams to explicitly model the transitions among Git’s file states: TRACKED, UNTRACKED, UNMODIFIED, MODIFIED, UNSTAGED, and STAGED. The diagrams I’...
5 votes
5 answers
283 views
How to ensure that release tags are uniformly created throughout a cohort of closely-related Git repositories?
Working as part of the release team for a sprawling open source project that uses dozens of Git repositories, I regularly run into situations where one or more of the satellite repositories are ...
1 vote
4 answers
460 views
All git branches in one directory, or one directory per branch. Any technical reason?
We are a recently formed embedded software team, having a minor religious war. Please note that we all work multiple tickets at a time, so will always each of us have multiple branches. Some prefer to ...
2 votes
1 answer
238 views
How to design a plugin architecture in Node.js?
I have a Node.js application and I want users to be able to develop custom plugins. I have multiple ideas and I am unsure how good they are. I need some tips from more experienced developers. My first ...
1 vote
1 answer
153 views
Database table updates in GitOps
The scenario: I have a web application running in Kubernetes. The web application is managed and updated by Argo CD, which means a Git repo defines the state of the application. Now the new ...
14 votes
8 answers
5k views
When is it acceptable to commit directly to main/master?
Working with Git, I’ve often heard that committing directly to the main (or master) branch is generally discouraged. Instead, many teams adopt workflows where all changes are made in separate branches,...
4 votes
4 answers
848 views
Is it okay to deploy both front end and backend everytime if they are in a single repository
I have a project with .net core web api backend and angular as front end. I have single repository for both the projects with front end and backend in their own separate folders. I have written ...
0 votes
1 answer
95 views
Git: Trunk based development for change to build sytem and documentation
I want to adopt trunk based development for an opensource product and but I am not sure how it can be applied to documentation and build system changes. Feature flags does not help for things that are ...