Questions tagged [git]
Git is an open-source DVCS (Distributed Version Control System)
1,194 questions
3
votes
1
answer
253
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 ...
7
votes
1
answer
514
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’...
150
votes
10
answers
24k
views
Maintain hundreds of customized branches over master branch
Currently we have one master branch for our PHP application in a shared repository. We have more than 500 clients who are subscribers of our software, most of whom have some customization for ...
27
votes
2
answers
7k
views
Why doesn't Git set the file time?
Git by default does not set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the pushed files.
Doesn't it make sense for the file's modification ...
0
votes
1
answer
172
views
What is the best way to manage git workflows for applications built on top of in progress libraries?
I am doing something I haven't done prior, which is that I built a library (that is still in progress as it is somewhat ambitious), and now I am developing an application on top of the "alpha&...
1
vote
4
answers
610
views
How to decompose a large Git commit with an AI
Given a large Git commit, how can I split it in a "virtual branch" of multiple smaller coherent changes properly annotated with commit messages? How can AI be applied to the task?
I like ...
73
votes
17
answers
17k
views
What can I do for developers who can't learn Git? [closed]
Context
My team of 8 engineers is currently transitioning to Git (from Subversion) for our next big thing. We have a handful of 'more experienced' engineers that are finding it quite difficult to ...
5
votes
5
answers
284
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 ...
90
votes
11
answers
45k
views
Why learn git when there are GUI apps for GitHub?
Given that GitHub provides GUI apps for both Mac and Windows, what are the benefits of learning to use git from the command line?
Currently I'm using their mac app to update my repositories, and so ...
306
votes
10
answers
42k
views
I'm a Subversion geek, why should I consider or not consider Mercurial or Git or any other DVCS?
I try to understand the benefits of distributed version control system (DVCS).
I found Subversion Re-education and this article by Martin Fowler very useful.
Mercurial and others DVCS promote a new ...
1
vote
4
answers
462
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 ...
0
votes
1
answer
167
views
Configurations stored in database & GitOps
I recently came upon the concept of GitOps. One idea that's central to GitOps is the use of static configurations (e.g. Git repositories are the source of truth for configurations).
In my distributed ...
427
votes
8
answers
521k
views
What does 'stage' mean in git?
I find git hard to understand as I could not find the meaning of the words used for the actions. I have checked the dictionary for the meaning of 'stage' and none of the meanings were related to ...
54
votes
3
answers
39k
views
Where does refactoring belong in GitFlow branch naming model?
I recently started working with GitFlow model as implemented by bitbucket. And there is one thing that is not completely clear to me.
We try to regularly address our technical debt by backlogging, ...
74
votes
3
answers
45k
views
Can a git commit have more than 2 parents?
In this documentation it is mentioned
A commit object may have any number of parents.
But from my understanding, the only case where a commit will have more than 1 parent is when a merge has ...