dvcs

Reasons for not working on the master branch in Git

[亡魂溺海] 提交于 2019-12-17 18:22:43
问题 So, I'm fairly new to git and I've after a bit of reading around over the last couple of weeks I've read a few people saying that the master branch shouldn't be changed but rather branched from and then merged to. I'm happy enough to work with branches but was wondering for the reasons behind not working on the master branch? 回答1: i guess the usual reasoning is, that the master branch should represent the 'stable' history of your code. use branches to experiment with new features, implement

Using Git with VB6

ⅰ亾dé卋堺 提交于 2019-12-17 18:21:09
问题 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

Is there any distributed revision control system that supports partial checkout/clone?

*爱你&永不变心* 提交于 2019-12-17 18:19:48
问题 As far as I know all distributed revision control systems require you to clone the whole repository. For this reason is it not wise to put huge amounts of content into one single repository (thanks for this answer). I know that this a not a bug but a feature, but I wonder whether this is a requirement for all distributed revision control systems. In distributed rcs the history of a file (or a chunk of content) is a directed acyclic graph, so why can't you just clone this single DAG instead of

How do I clone a sub-folder of a repository in Mercurial?

女生的网名这么多〃 提交于 2019-12-17 10:15:56
问题 I have a Mercurial repository containing a handful of related projects. I want to branch just one of these projects to work on it elsewhere. Is cloning just part of a repository possible, and is that the right way to achieve this? 回答1: What you want is a narrow or partial clone, but this is unfortunately not yet supported. If you already have a big repository and you realize that it would make sense to split it into several smaller repositories, then you can use the convert extension to do a

Transferring legacy code base from cvs to distributed repository (e.g. git or mercurial). Suggestions needed for initial repository design [closed]

情到浓时终转凉″ 提交于 2019-12-17 04:07:43
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . Introduction and Background We are in the process of changing source control system and we are currently evaluating git and mercurial. The total code base is around 6 million lines of code, so not massive and not really small either. Let me first start off with a very brief

Git and Mercurial - Compare and Contrast

久未见 提交于 2019-12-16 22:21:10
问题 For a while now I've been using subversion for my personal projects. More and more I keep hearing great things about Git and Mercurial, and DVCS in general. I'd like to give the whole DVCS thing a whirl, but I'm not too familiar with either option. What are some of the differences between Mercurial and Git? Note: I'm not trying to find out which one is "best" or even which one I should start with. I'm mainly looking for key areas where they are similar, and where they are different, because I

git-svn rebase “File name too long”

天涯浪子 提交于 2019-12-12 19:51:24
问题 I'm running $ git svn rebase After couple of minutes it's finished fetching and started rebasing. And I have got next error message: First, rewinding head to replay your work on top of it... error: cannot stat '$73_chars_4_deep_levels_path_with_spaces/$180_chars_file_name_looks_cutted_with_spaces_too': File name too long error: cannot stat '$73_chars_4_deep_levels_path_with_spaces/$180_chars_file_name_looks_cutted_with_spaces_too': File name too long error: cannot stat '$73_chars_4_deep

Using Mercurial (hg), how to push just one file or one directory out?

☆樱花仙子☆ 提交于 2019-12-12 16:03:42
问题 Using Mercurial, we can commit one file by using hg commit file.rb or 1 folder hg commit foldername But how can we push just 1 file or 1 folder out? The whole project can be pushed using hg push ssh://peter@192.168.1.102//project/code/preliminary but there seems to be no way to push out just 1 file or 1 folder? I tried the following and they don't work: hg push ssh://peter@192.168.1.102//project/code/preliminary app/views/index.html.erb or hg push ssh://peter@192.168.1.102//project/code

Mercurial: enforce “hg pull -u” before “hg commit”

♀尐吖头ヾ 提交于 2019-12-12 10:39:51
问题 I have in some cases a need to enforce that Mercurial-users have run hg pull -u before any hg commit can be allowed, i.e., hg pull will mean that the incoming queue is empty — and furthermore I also want that the person is using the head version of the branch. How can I set up such a restriction? (I am fully aware that this goes against parts of the DVCS design core) 回答1: You could ask your developers to install [hooks] pre-commit = hg pull -u in their config files (it should probably be

How to make local clone without pulling subrepos again?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 08:54:16
问题 I often work with Mercurial by keeping a local store of my upstream clones, and then just cloning again locally for my actual working environment: $ cd /clones $ hg clone ssh://external-repo.example.com/some/repo/path/foo $ cd ~/Development $ hg clone /clones/foo This is particularly useful for me because I often want to make new clones on airplanes, etc., where I have no internet access. However, this doesn't work when the original clone contains subrepos - the presence of the .hgsubstate