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

learn more… | top users | synonyms (2)

-2
votes
0answers
53 views

What's the difference between subversion and tortoise SVN?

Just like my title states, I want to know what the difference is between subversion and tortoise SVN. I know they both have to do with version control but I'm unsure as to how they both fit in. Do I ...
9
votes
2answers
147 views

After breaking our code into reusable bits, how do we test and deploy?

We started out with one developer, and one svn repo containing all our code: ^/foo/trunk/module-a ^/foo/trunk/module-b ^/foo/trunk/module-b/submodule-b1 ^/foo/trunk/website1 (at the time this was a ...
0
votes
0answers
19 views

Best way to handle multiple environment specific sql scripts in source control

I am maintaining an app that uses a lot of sql server 2008r2 stored procs, views etc. The problem that I have is that certain stored procedures/views have code that is specific to the environment: ...
1
vote
0answers
13 views

Setup SVN repository with multiple applications and libaries while maintaining specific versioning per application

In our project team we have one SVN repository which holds multiple applications and libraries (all QT projects) /trunk/App_X/ /trunk/App_Y/ /trunk/App_Z/ /trunk/Lib_A/ /trunk/Lib_B/ /trunk/Lib_C/ ...
0
votes
0answers
20 views

Is there a way to group branches from separate Git repositories [using Visual Studio]?

At my job we are migrating from TFS to VSTS Git, though the VCS types probably don't really matter as much as how we're using them. We use VS2015 for development usually, in case that matters. The ...
1
vote
1answer
41 views

How do I organize my project to accomodate GIT pull requests for source installed via PIP?

I want to structure my Python project in a manner such that others can use a package manager (PIP) to easily clone the environment for team development, and GIT to contribute to the project, plus a ...
20
votes
5answers
1k views

Should we be hosting code online?

We're looking for a good source control and project management solution at my workplace and I've suggested creating a GitHub organization and private repositories. I love GitHub for many reasons, but ...
7
votes
3answers
292 views

How can I group commits in a version control system such as git

Instead of a one long flat commit history, why isn't there a hierarchy, so at the top level you might have pull requests, then you could go down a level and look at the commits in that PR. I realise ...
2
votes
0answers
18 views

How to set up embedded projects for maintainability

We are about to start using FreeRTOS with lwip and mbed-tls as a platform for new products. We're working in an Linux environment and I'm tasked with setting up our first project. In Linux we ...
4
votes
1answer
117 views

Should the HEAD version of the trunk always build?

At my workplace we use CVS tags to the extent that nobody ever retrieves the HEAD version of the trunk. Is there any reason why that version still needs to build fully? The reason I ask is because ...
0
votes
0answers
47 views

Which git branches should I tag?

I read this nice post: Git branching and tagging best practices I really like the NVIE git branching model and I try to use something very similar: http://nvie.com/posts/a-successful-git-branching-...
5
votes
0answers
81 views

Are there any other Git porcelains other than the default one? [closed]

One of Linus's emails mentions the separation of the Git tools into the "plumbing" (usable by automated tools) and a user-friendly interface on top of the that (which has later come to be referred as ...
5
votes
1answer
125 views

How can I organize my TFS structure such that a one-off project that pulls files from another project can be easily managed?

I have my main project set up very simply in TFS. I've recently begun making a few of my project components generic enough that I can sell them to other organizations using the software for which I ...
0
votes
1answer
39 views

Is it possible to deploy a maven artifact straight to a webserver?

Say I have my project that looks like /src/main/java/... /src/main/resources/... /src/main/webapp pom.xml And I have this stored in my version control, Git/SVN etc. My artifact has a signature ...
30
votes
9answers
2k views

Using some kind of version control when working alone and with small projects?

Very often I'm working on small projects only for myself. I'm working on one machine, but recently I thought about using some kind of version control nevertheless. This would have some benefits as for ...
1
vote
0answers
28 views

Good practice to share resources in MVC web projects

If we are working on multiple ASP.NET MVC projects that share a lot of common stuff like CSS, Scripts, or even utility C# methods, etc... what is a good way to keep them in one place ? Currently I ...
17
votes
5answers
1k views

How to refactor when all your development is on branches?

At my company, all of our development (bug fixes and new features) is done on separate branches. When it's complete, we send it off to QA who tests it on that branch, and when they give us the green ...
17
votes
5answers
2k views

What advantages do continuous integration tools offer on a solo project?

If you're doing a solo project - would you use CI tools to build from a repository? I've used Hudson and Cruise Control in a team environment, where it's essential to build as soon as anyone checks ...
47
votes
22answers
15k views

What are some good practices before checking in source code? [closed]

My team uses Team Foundation Server for source control, and today I fixed some bugs and smoke test application before I checked it in but I forgot to comment some code. (This code made the UI a little ...
6
votes
1answer
172 views

Best practices for version control in Unity?

I'm a bit confused how to use version control with Unity, especially with objects such as scenes or prefabs that are not just code. We had an issue recently when my colleague and I were working on ...
2
votes
1answer
57 views

Should untouched repos get an updated version number at end of sprint?

Lets say we have a large project which is split across multuple repos. We have something like shared-functionality-repo GUI-repo REST-server-repo supporting-framework-we-plan-to-release-seperate-...
26
votes
2answers
1k views

How to enforce good/better source code control practices?

I suspect that I'm focusing on the wrong problem so I will first describe what I think the problem is before presenting the possibly suboptimal solution I envision. Current Situation: Currently my ...
5
votes
2answers
291 views

Is licensing an issue for Git Submodules?

For example: an MIT-licensed project wishes to simplify the build process for its users by including part of the GNU toolchain (which is of course GPL) as a Submodule. Could that be interpreted as ...
247
votes
14answers
24k views

Why does everyone use Git in a centralized manner?

I have used Git at my past two companies for version control. It seems from what I've heard that about 90% of companies use Git over other version control systems. One of the biggest selling points ...
4
votes
2answers
108 views

Making minor edits elsewhere while working on a commit [duplicate]

I have a habit of constantly making minor edits to my code whenever I spot something I don't like - be it a bug or just some sloppy piece of code I see how to improve. Neurosis-Driven Development. ...
7
votes
3answers
5k views

How do you structure your branches in TFS

My group at work has been trying to come up with a good process that we can use with TFS. I'm just wondering if some of you guys had some successful strategies with using TFS across multiple sites ...
9
votes
4answers
7k views

Why should large financial/insurance companies use git and/or github

I work for a large enterprise (30K employees) in the financial/insurance industry. While "IT" isn't our main focus, let's be honest, these are information driven industries and the companies with the ...
5
votes
4answers
137 views

Easily accessible setup files for installation

The software product I work on has several services and user interfaces. There are separate setup files for each unit of the product for installation. We make customer specific changes and bug fixes ...
1
vote
0answers
68 views

Working on the same file for two tickets

The company policy where I work is that code cannot be committed to SVN until a code review is complete. This is sensible enough as we don't want broken code ending up in the repo, but it does give us ...
7
votes
3answers
196 views

Version control on standalone (in-house) libraries?

Problem Statement At our company, we have various application projects that we work on and then we also have libraries that those projects need to utilize. I feel the need (based on some similar ...
15
votes
4answers
7k views

How can I organize personal git repositories?

I'm in the process of setting up a GitHub account with the plan of making a pair of libraries I developed as parts of some recent iOS projects freely available for other iOS devs to use. I don't ...
4
votes
3answers
111 views

Feature branch which never made it into develop

I am cleaning up our git repository and there is a feature branch which contains a prototype of an interesting feature which the management decided not to include soon in the product. What do you do ...
9
votes
4answers
204 views

How to determine if there is useful deleted code in source control?

So I was reading over this question Should I remove unreferenced code? Some of the advice was to delete unreferenced code since the code is in source control for reference in case it is needed later....
3
votes
1answer
113 views

Best ways to manage my Git repositories with projects sharing the same code [duplicate]

My background: I was programming for many years, but have never used a version control system. I felt, that such a system would save me a lot of time and allow me to be more productive, but I never ...
23
votes
6answers
573 views

Splitting coding progress into meaningful commits without too much overhead

When working on a fix or a feature, I sometimes stumble over other tiny issues that can be improved on the fly in a matter of seconds. When I do them immediatly and then commit the finished feature/...
-2
votes
1answer
37 views

Handle multiple parallel wide modifications using branching in VCS

Here, the term of branch is understood as a git branch. I don't know how branch works in other VCS, but its probably VCS-agnostic. Given a branch base, and around it many other "satellites" branches, ...
2
votes
1answer
50 views

Workflow and process when branches have dependencies in git for code reviews

A fairly common workflow for working with git is: Fork master Make changes/add functionality in branch Make pull request for your branch vs master Merge pull request (after code review, automated ...
7
votes
3answers
3k views

Appropriate Git workflow for multiple active releases while handling hotfixes

I'm trying to choose a Git workflow that is most appropriate for our product. Here are the parameters: We do a few major releases a year, let's say 10 at the most We have multiple versions of our ...
1
vote
2answers
101 views

Best practice for creating defined versions in git

In my company we have a 'production pipeline', which is a bunch of code which we use to produce data, with the data later shipped to customers. The code is still being developed, bugs get fixed etc. ...
44
votes
2answers
18k views

What is Google's repository like?

I heard Google has a giant private (internal) repository of all of their code and their employees have access to it so that when they are developing things they don't have to reinvent the wheel. I'd ...
28
votes
7answers
1k views

How did version control work on microcomputers of the day in the 80s and 90s?

I'm curious to know how programmer teams typically managed their software development back in the 80s and early 90s. Was all the source code simply stored on one machine which everyone worked on, or ...
15
votes
7answers
727 views

Why not commit unresolved changes?

In a traditional VCS, I can understand why you would not commit unresolved files because you could break the build. However, I don't understand why you shouldn't commit unresolved files in a DVCS (...
3
votes
1answer
120 views

Should we use a monorepo?

My team is planning a migration from subversion to git. We support 3 applications... 1 is primarily for internal users, 1 is for corporate "partners" and 1 is for end users. These applications share ...
137
votes
5answers
53k views

Choosing between Single or multiple projects in a git repository?

In a git environment, where we have modularized most projects, we're facing the one project per repository or multiple projects per repository design issue. Let's consider a modularized project: ...
106
votes
10answers
45k views

Should images be stored in a git repository?

For a distributed team that uses Git and Github as version control, should images also be stored in the git repository? For the most part, the images won't be changed. The folder containing them will ...
4
votes
2answers
5k views

Strategy for maintaining assembly references in TFS

I have a 3 branch setup: Dev, QA, Prod. There is a references folder where we store common 3rd party and internal assemblies. Change mgmnt has been challenging. Sometimes Devs forget to go into ...
6
votes
1answer
102 views

Why use a dedicated “pushbot” user which automatically merges approved pull requests?

Most Github repositories I'm aware of use the following workflow for pull requests: one or several users with "contributor" privilege review the suggested changes and then one of them merges the pull ...
63
votes
10answers
3k views

Is it worth making a commit solely to resolve non-critical typos?

If I come across a non-critical typo in code (say, an errant apostrophe in a print(error) statement), is it worth making a commit to resolve that error, or should it simply be left alone? ...
3
votes
1answer
142 views

How to improve our source control process

Background: We are using agile project management and follow sprints to do development. We are using a single repository in bitbucket.org that uses mercurial. Repository is hosting 3-4 products. ...
-2
votes
3answers
182 views

What is the most elemental workflow for TDD?

Gradle is such an interesting build tool that it prompted me to look at Spock and JUnit -- which I've never done before. What is the basic workflow with TDD? My approach has been to do frequent ...