Skip to main content

Questions tagged [version-control]

A programming discipline for tracking, storing and retrieving revisions of source code.

Filter by
Sorted by
Tagged with
4 votes
5 answers
643 views

Facebook famously made a post about using a "monorepo" and for a while it seemed like this approach would take over from standard, separate out the code into multiple source controlled "...
Ewan's user avatar
  • 84.6k
2 votes
3 answers
170 views

My team does predominantly back-end work in C#, with a smattering of front-end web development using Angular. We're starting a new website project, based on the Admin LTE framework / template. This is ...
mmathis's user avatar
  • 5,586
4 votes
1 answer
211 views

I have some software intended to work on both Ubuntu 22 and Ubuntu 24, but due to differences between the distributions, it doesn't function properly on Ubuntu 24. Given this context, what is the ...
banjo123's user avatar
1 vote
6 answers
386 views

Note: The question was heavily rewritten after the comments it received. I work on a team that develops embedded software for various in-house devices. Each device hosts multiple "bare metal"...
titanicsnake's user avatar
19 votes
7 answers
5k views

I am working in small company, having a lead position in a group of 5. We are developing a C++ application. One requirement is that it needs to run fast. Today, I noticed one function, say f1(), and ...
Jason Cho's user avatar
  • 301
14 votes
8 answers
5k views

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,...
camhsdoc's user avatar
  • 257
2 votes
3 answers
118 views

I'm working on a project for our healthcare clinic's software and could use some guidance. For regulatory and historical purposes, patient charts need to remain as "static" records—...
idiotappowner's user avatar
2 votes
2 answers
1k views

What are the pros and cons of using cherry-pick versus merge for release management? Background We have a dev branch, and just created a release1 branch from it. Folks will commit relevant content to ...
Jonathan's user avatar
  • 565
18 votes
7 answers
5k views

So, in many software you can do that easily using the mouse: Although very useful, they aren't in chronological order anymore. Is there anything wrong in doing that?
aybe's user avatar
  • 955
0 votes
2 answers
4k views

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 ...
just_a_developer's user avatar
0 votes
2 answers
239 views

Problem: There are proprietary algorithms that developers who are actively working on a project will need to call but they should not see the underlying logic. They need to be stored in an area of ...
Rudazzle's user avatar
  • 111
9 votes
3 answers
7k views

I recently started using Semantic Versioning. Due to conflicts with my previous versioning convention (which I created myself), I am very confused about versioning unit tests as part of the public API....
KhodeNima's user avatar
  • 225
11 votes
11 answers
8k views

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 ...
sds's user avatar
  • 891
2 votes
2 answers
830 views

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 ...
Kurt Bourbaki's user avatar
1 vote
1 answer
866 views

We have multiple developers contributing to a project, using Git as our repository. We have a QA branch that matches our QA environment and a master branch that matches production. Features can be in ...
Lisa S's user avatar
  • 21
0 votes
2 answers
236 views

Are there any algorithms that can do or suggest merges without requiring the "base" file, the most recent common ancestor of the two file versions that we want to merge? Is a manual merge ...
yoyo_fun's user avatar
  • 2,297
1 vote
0 answers
90 views

Versions are on the form: x.y.z.[..] Where these letters are numbers and there are arbitrarily many of them. The first version is 1. The next one is 2. The only time when you branch out to the next ...
Guildenstern's user avatar
17 votes
6 answers
7k views

A common scenario I have is this: I download a new codebase. In order to have me understand the code, I need to litter it with my own comments about what each section of code does. It seems ...
user3180's user avatar
  • 283
1 vote
0 answers
172 views

I'm sure this has been touched upon by a number of questions, but I'm struggling on drawing the boundaries between code, data and configuration versions when working with a large DAG (think airflow or ...
MYK's user avatar
  • 343
0 votes
2 answers
240 views

In Software Engineering by Pressman: The steps in continuous integration are: Check out the mainline system from the version management system into the developer's private workspace. Build the ...
Tim's user avatar
  • 5,565
1 vote
2 answers
168 views

Recently I had many problems opening old projects, which had all dependencies in package.json defined with ^ x.y.z. When I pull the code and run npm install the dependencies are installed but I will ...
Jancer Lima's user avatar
1 vote
1 answer
178 views

For one of my current projects, written in Python, we would like to have two different versions: One for internal use, with all features enabled, and one for external use, with limited features. The ...
arc_lupus's user avatar
  • 121
4 votes
1 answer
368 views

I have a project in which I'm the sole contributor, there isn't a stable API yet and I'm constantly refactoring code, but I still try to denote breaking changes whenever they do happen. Recently ...
Clara's user avatar
  • 53
1 vote
1 answer
2k views

Context: I am working on a project in which people use tags on commits yet in branches waiting on the Pull Requests queue of GitHub. This means they are non-merged to the main branch yet. The problem ...
Pedro Delfino's user avatar
2 votes
0 answers
872 views

There are many version control systems out there, and they tend to use one of the following models to store separate versions of a repository: Snapshots - each version of your repository is stored in ...
Lou's user avatar
  • 366
3 votes
1 answer
414 views

First some context. Working in teams which use a CI environment, many people will know the typical Gitflow release process. Without going into too much political detail, the company I currently work ...
ChrisK's user avatar
  • 53
3 votes
2 answers
346 views

Imagine you're creating a completely new version control system, like Git, Mercurial, SVN etc. from scratch. Rather than identifying commits by SHA hashes, you identify them using an ordered sequence ...
Lou's user avatar
  • 366
0 votes
2 answers
279 views

There is somebody else's project (A), a part of which (foo.h) I want to use in my project (B) with some modifications. The modifications make sense only in the context of B, so I can copy foo.h into B ...
user417469's user avatar
4 votes
2 answers
685 views

Sometimes code will need to be moved. A common example is some logic that exists in a controller needs to get moved to a helper class so it can be called from outside of that controller. So someone ...
chiliNUT's user avatar
  • 190
2 votes
0 answers
886 views

I'm currently trying to update the linux kernel used in a xilinx SoC, my company has an internal repo/fork of xilinx open source linux with a bunch of kernel drivers for our custom hardware & ...
Skye's user avatar
  • 29
0 votes
3 answers
192 views

I am working on a Django based project that is version controlled with SVN. My main objective is porting it from Python2.7 to Python3.9. Whilst I port the project, my team brought some updates, now I ...
Mehmet Eren BULUT's user avatar
-3 votes
1 answer
164 views

Suppose I have file a.txt, b.txt and c.txt: a.txt: Hello, I like cake. b.txt: Hello, I like turtles. c.txt: go away, I don't like you I suspect the difference between a.txt and b.txt is ...
user32882's user avatar
  • 267
-2 votes
4 answers
370 views

I've been having the problem that at the beginning of a new project, I'm likely to switch frequently between tasks in a way that (to me) doesn't seem very conducive to small single-concern commits. ...
Christopher Shroba's user avatar
6 votes
3 answers
2k views

To date, we have implemented a multi-repo approach in which each project, or for larger projects, each tier, has its own repo. Code is written in Typescript, Javascript, C#, PowerShell and T-SQL. ...
TimTheEnchanter's user avatar
0 votes
2 answers
333 views

I work as a Website developer. We use a framework for building the backend of our sites. This framework recently released a new major version with lots of breaking changes. We have some sites using ...
Patrick Hollweck's user avatar
6 votes
5 answers
2k views

If you haven't heard of Kent Beck's TCR, it can be summarized with this: any time your tests go green, you commit; anytime your tests go red, you git reset --hard. This post is about how to practice ...
Daniel Kaplan's user avatar
0 votes
2 answers
203 views

It seems that there are at least two possible definitions of continuous integration: Frequent merging of a codebase to a common codebase (e.g. daily merge to the main branch of a VCS server). ...
Géry Ogam's user avatar
-1 votes
2 answers
356 views

I'm working on a big C# application that is currently under development so we have some room for structural refactoring. The application is divided into 10 microservices, which some of them ...
andresantacruz's user avatar
7 votes
1 answer
364 views

In some recent projects, I found myself having some longer spike phases in which I build many cheap prototypes and explore different design decisions, long before I would consider my code of ...
Christoph Thiede's user avatar
6 votes
6 answers
1k views

Often one wants to apply a code-formatter, like Black, or JuliaFormatter to a existing code-base. One where standards have tried to be followed but a few things might have slipped in. Once you have ...
Frames Catherine White's user avatar
5 votes
3 answers
493 views

I've come across some apparently-conflicting patterns of behaviour. I'd like to understand why they each exist. I'll call them "conventions" for the sake of simplicity, though I'm not sure ...
OutstandingBill's user avatar
3 votes
3 answers
691 views

For the last several years, I've been checking all dependencies of my team's nodejs project into source control. At first, we stored the archives of all dependencies using yarn v1's offline mirror, ...
SirensOfTitan's user avatar
3 votes
1 answer
2k views

First actually I don't think Git is a specific involved tool here, it can be any other Source/Version Control tool (TFS, SVN, ...). The point here is how to deal with the scenario in which I have ...
Hopeless's user avatar
  • 159
0 votes
0 answers
155 views

A few alternative twists on the question title to contextualize further: What to archive of the "sources" for a given software build? Should I include all transitive packages in my ...
Martin Ba's user avatar
  • 7,861
0 votes
2 answers
1k views

I'm doing some work with my team to refactor/rearchitect some parts of our existing codebase which consists of two separate Django apps hosted in one common project repository. We're starting work on ...
Nick Gotch's user avatar
-1 votes
1 answer
109 views

I'm trying to come up with a better way to organize my C# projects on SVN. The .NET solution for my main GUI has about 28 class library projects. These libraries fall into two categories. Some of them ...
gunnerone's user avatar
  • 107
2 votes
4 answers
834 views

Firstly, this is a really tough topic to do searches for because you get a wealth of information on “code review”, which is different from what I’m referring to here. That normally refers to ...
Deep Thought's user avatar
2 votes
0 answers
361 views

My Proposed Monorepo Architecture This layout is what I've come up with from reading through tons of articles and being convinced that Nx suits many of our needs where I work. The layout works fine ...
Mazzone's user avatar
  • 121
10 votes
2 answers
3k views

I work on a number of code projects, some open source and some not. Many of these projects are intended to be cross-platform, most often running on either Linux (my natural habitat) or Windows and ...
Edward's user avatar
  • 214
3 votes
1 answer
2k views

Our situation At first, our company had 1 product. Custom hardware with firmware we wrote ourselves. Now more projects are starting to be added. Many can reuse most of the components of our first ...
Kodiak's user avatar
  • 105

1
2 3 4 5
20