dvcs

With dvcs/git, is a single commit preferred over multiple, small, thematic commits?

旧巷老猫 提交于 2019-12-20 01:34:28
问题 This may not be a git specific question, but it comes up in the context of git. The idea may apply more broadly to other vcs's. I am working on a small project in which I am currently the only developer. I'm getting used to using git, so I am wondering about best practices. As I implement new features/functions, I find that I work on multiple files, their examples, and documentation at once, such that my git status may report 15 files that have changed. But those files might relate to 3

How to make sure my git repo code is safe?

血红的双手。 提交于 2019-12-18 16:54:34
问题 If our organisation were to switch from a central-server VCS like subversion to a distributed VCS like git, how do I make sure that all my code is safe from hardware failure? With a central-server VCS I just need to backup the repository every day. If we were using a DVCS then there'd be loads of code branches on all the developer machines, and if that hardware were to fail (or a dev were to lose his laptop or have it stolen) then we wouldn't have any backups. Note that I don't consider it a

Mercurial error: repository is unrelated

陌路散爱 提交于 2019-12-18 13:53:20
问题 I've just started with Mercurial, I have a 'central' repository on Bitbucket which I cloned onto one machine and made changes and committed and pushed. I then cloned from Bitbucket to another machine committed and pushed which was fine. I then came back to the first machine, made changes committed and attempted to push, but got the error message. What am I doing wrong? Should I have pulled first? How can I resolve the error and push? Any help is appreciated! Darren. 回答1: A Mercurial

Sorting out a Git mess

北慕城南 提交于 2019-12-18 13:16:21
问题 I've just inherited a project which was maintained using Git. At one point, the code was deployed onto 3 separate systems and each system maintained their own decentralised Git respository. Each of the 3 systems extended the original base system in 3 different directions. None of the 3 systems have been synchronised against each other. Some changes are on master branch, others are on new branches. How can I bring the 3 different sources together so that I can: find a common base to work with;

Why are Mercurial backouts in one branch affecting other branches?

Deadly 提交于 2019-12-18 11:48:37
问题 This is a difficult situation to explain, so bear with me. I have a Mercurial repository with 2 main branches, default and dev . Work is usually done in a named branch off of dev (a feature branch). There may be many feature branches at any one time. Once work is completed in that branch, it is merged back into dev . When the time comes to prepare a release, another named branch is created off of dev (a release branch). Sometimes it is necessary to exclude entire features from a release. If

Build sequencing when using distributed version control

≯℡__Kan透↙ 提交于 2019-12-18 10:05:06
问题 Right now, we are using Perforce for version control. It has the handy feature of a strictly increasing change number that we can use to refer to builds, eg "you'll get the bugfix if your build is at least 44902". I'd like to switch over to using a distributed system (probably git) to make it easier to branch and to work from home. (Both of which are perfectly possible with Perforce, but the git workflow has some advantages.) So although "tributary development" would be distributed and not

How do I manage large art assets appropriately in DVCS?

自作多情 提交于 2019-12-18 09:56:18
问题 Is there any good way to handle large assets (i.e. 1000's of images, flash movies etc.) with a DVCS tool such as hg and git. As I see it, to clone repositories that are filled with 4 GB assets seems like an unnecessary overhead as you will be checking out the files. It seems rather cumbersome if you have source code mixed together with asset files. Does anyone have any thoughts or experience in doing this in a web development context? 回答1: These are some thoughts I've had on this matter of

Consequences of using graft in Mercurial

喜欢而已 提交于 2019-12-18 09:54:53
问题 There've been several questions recently about skipping changes when maintaining release branches in Mercurial. For example: Mercurial: Branch specific changes keep coming back after dummy merge Why are Mercurial backouts in one branch affecting other branches? Since it was introduced in 2.0, I've wondered about using graft to avoid this problem. Given a revision tree like this: A---B---C---D---E---F---G---H---I---J Suppose we need to create a release branch that skips the Evil change E . hg

Git Submodule to a subfolder

那年仲夏 提交于 2019-12-17 18:34:21
问题 In svn you can link a repository to any folder in another svn repository. I'm wondering if there is a similar feature for git? Basically I want a git submodule inside my repository, but I want the submodule to be a pointer to a subfolder of another git repository, not the whole repository. Is this possible? 回答1: Git does not support partial checkouts, so the submodule must point to a complete repository. This thread on the Git mail list provides some background information. This article from

Using Git with VB6

…衆ロ難τιáo~ 提交于 2019-12-17 18:24:12
问题 Our company has a large codebase in VB6, and we currently use VSS which, for all that we hate about it, at least integrates into the VB6 IDE. My own team, which is using .NET, are now looking into alternative SCMs like my personal favourite, Git. With Git Extensions, it seems we will be able to integrate Git commands into the Visual Studio IDE pretty well. However, the question has been asked: could Git be used for our VB6 codebase too? Of course I assume the files themselves would work fine