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
241
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 ...
0
votes
0
answers
71
views
Most efficient way to maintain versioned business rules files for an Amazon ECS service?
I have an Amazon ECS service that relies on configuration files that contain business rules. The business rules are changed periodically by non-programmers. Total size of the rules files is ...
24
votes
4
answers
10k
views
How can I start using Git in a project that is already underway?
I'm developing a personal project that wasn't originally intended to be public (just for me, testing, fun, learning, etc.) This project has grown a bit and become serious enough that I now want to ...
0
votes
2
answers
4k
views
Why does Meta (Facebook) use mono-repo in their source control? [closed]
Meta maintains all their code in a single repository and initially used Git. Due to performance issues attributed to the repo's size, they consulted Git's team, who suggested switching to a multi-repo ...
0
votes
1
answer
107
views
What will the best way to manage access to the app projects Git repositories with shared service classes within one solution?
I have been programming in C#/.Net and other languages as a hobby for over 6 years, so I do not have adequate knowledge about application architecture, hence my request for advice.
The current ...
1
vote
2
answers
448
views
Is 'backporting fixes and creating releases' a common job role?
Context: The software development company I work for develops an application which is released with SemVer versions. Typically customers use the last 2-3 minor releases, so for an example if the ...
0
votes
6
answers
1k
views
How to use trunk based development when using Scrum [closed]
In Scrum we do a 2 week sprint and ship the features after the sprint. I have heard a lot of good things about TBD, but does it conflict with Scrum? Can anyone share your workflow if it is possible ...
11
votes
11
answers
8k
views
Where to keep the code that I do not want in the main?
I made some changes that, after testing, I decided not to use for now.
Thus I don't want them in the main branch.
However, I don't want to discard them altogether (maybe I will need them later?)
What ...
2
votes
2
answers
825
views
Where to tag releases to achieve "build-once, deploy-everywhere" using GitFlow?
TL;DR: Using GitFlow, which commit do you tag to identify the build of your next release? If you tag the merge commit on main, you'll need to rebuild and deploy something you didn't test on QA (and ...
1
vote
2
answers
262
views
How to store an encrypted filesystem in a single file on disk on multiple platforms (maybe not portably), or alternatives
I'm in the very conceptual phase of designing an open source password manager that provides distributed Vaults that can be simultaneously accessed and managed from multiple devices with the promise of ...
0
votes
2
answers
228
views
How should we set up our git structure?
this is a robotics team with some questions.
Here's our current setup, using GitLab:
Currently, we have a main branch as well as a separate branch for each of our programmers. When they want to start ...
-3
votes
3
answers
587
views
Defining 'First Commit' in Lead Time Metric and Strategies for Small Batches in Deployment Frequency?
I'm try to improve our deliver time from start to end. I read google post about 4key metrics. I have questions that don't find answers in any post.
1- Lead time definition is "The amount of time ...
2
votes
2
answers
396
views
Git - best practice - push non-runnable intermediate commits
I would like to discuss with you this way about the best way to work with git.
We are currently developing software with three people. For version management we use git. The main branch is our ...
2
votes
4
answers
8k
views
How to maintain development,testing and production branches when the number of devs is around 50?
Currently my code base has 3 deployments: "development", where devs unit test and develop features; "testing", where testers run end user verification for the features; and "...
17
votes
10
answers
4k
views
Looking for some alternative branching strategies to meet my team's needs
I've recently joined a new company and they've been experiencing some issues related to their branching strategy which causes untested code to be released inadvertently.
We have three branches of ...
3
votes
4
answers
2k
views
Understanding whether 'rebase' can be used in a team environment?
I'm new to Git, having worked with TFS for nearly 20 years, and I'm currently trying to get my head around "rebase". I broadly understand what it's doing, but there are a couple of caveats/...
2
votes
4
answers
4k
views
How do you deploy and test a hotfix repo branch in different environments, Git Flow variants
I have done thru where do bug fixes go in git flow and the git flow and github flow pages.
There are scenarios many times when we need to show demo of new functionality and on same day fix issues of ...
3
votes
2
answers
4k
views
Branching strategy for multiple team working on same repository
I am trying to come up with a branching strategy.
We have two teams working on the same product which is kept in one repository. Both teams have different release plans and if both teams merge on ...