version-control

mercurial for OS projects and svn for Enterprise projects?

女生的网名这么多〃 提交于 2020-01-13 02:45:10
问题 correct me if im wrong, but isn't distributed SCMs for OS projects while centralized SCMs are better for corporate/private projects? cause with eg. mercurial anyone gets an exact copy of the repository with FULL history features, while with centralized you only get the latest working copy. im more focused on private projects so i wonder if its better with centralized SCMs or doesnt it matter? 回答1: You can use a DVCS (like mercurial) in large corporation. The limits of a DVCS compared to a VCS

How can I find all the merges that had conflicts in a Git repository?

邮差的信 提交于 2020-01-12 23:28:22
问题 I am working on a research to study merges in open source projects. I recently asked How can I find all the commits that have more than one parent in a Git repository?, and got very good answers. Now I need to narrow my query to only find the commits that had conflicts. With conflicts I mean that the same file was modified in two contributing commits. Also, it would be very useful if I can find a git or bash (grep, awk?) command that gives me only those commits in which the same line was

Maintaining git repo containing other cloned git repo

断了今生、忘了曾经 提交于 2020-01-12 19:26:31
问题 I am working on a website using Sharelatex(github) but it contains other repositories that are used to build the main project. I cloned the main repository and did grunt install which is used to download those repositories. But the problem is that I need to change the code in both main repository and the downloaded ones. Since these projects can get new updates I want to merge those changes as well. I also need to maintain a repo, but when I push changes to Github it only shows changes in the

Version control and test-driven development

最后都变了- 提交于 2020-01-12 17:39:43
问题 The standard process for test-driven development seems to be to add a test, see it fail, write production code, see the test pass, refactor, and check it all into source control. Is there anything that allows you to check out revision x of the test code, and revision x-1 of the production code, and see that the tests you've written in revision x fail? (I'd be interested in any language and source control system, but I use ruby and git) There may be circumstances where you might add tests that

How to prevent Gitlab from creating extra merge commit on branch merge

匆匆过客 提交于 2020-01-12 14:56:31
问题 I use GitLab in my project. I'm exploring Merge Requests feature. I created a topic_branch from master . Made a bunch of commits on topic_branch . Pushed topic_branch to remote. Created a merge request on master to pull changes from topic_branch . On accept merge in Gitlab, master pulled all the commits and also created a merge commit which is horrible to see duplication of code. I should have created a squash of commits on branch and then created merge request. But still master would have

How to prevent Gitlab from creating extra merge commit on branch merge

浪子不回头ぞ 提交于 2020-01-12 14:54:21
问题 I use GitLab in my project. I'm exploring Merge Requests feature. I created a topic_branch from master . Made a bunch of commits on topic_branch . Pushed topic_branch to remote. Created a merge request on master to pull changes from topic_branch . On accept merge in Gitlab, master pulled all the commits and also created a merge commit which is horrible to see duplication of code. I should have created a squash of commits on branch and then created merge request. But still master would have

What would be a good introdcutory tool to Clearcase? [closed]

本秂侑毒 提交于 2020-01-12 10:44:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am developer with more than 10 years of software development experience. I have joined a new shop which uses ClearCase and I would like to understand ClearCase. Any suggestions for a developer who has pretty good hands on the following SCMs Subversion : Perforce : written extensive build scripts integrating

TFS Structure - Multiple Projects or Single Project?

一个人想着一个人 提交于 2020-01-12 07:33:08
问题 Our small development shop is looking to migrate our projects from VSS to TFS, and we're evaluating TFS vs. others (haven't pulled the trigger quite yet). The nature of our software shop is such that we have 100+ projects in VSS ranging from small one-man-show projects to massive enterprise-wide applications. We are trying to determine how to structure our projects in the transition and have, for the most part, decided on putting everything into one project site/system with each project

Hosting a git server on localhost

匆匆过客 提交于 2020-01-12 04:28:05
问题 My company does not have a central git server, and neither do they allow me to use BitBucket etc. Is there anyway I can use my localhost as remote ? EDIT: I am on a windows machine 回答1: Local directories work just like remote repository URLs, so basically there's nothing you need to do as long as you're the only person using the repository. Example, assuming Git Bash (from msysgit): mkdir /c/git mkdir /c/git/testrepo.git cd /c/git/testrepo.git git init --bare cd $TEMP git clone /c/git

What's a good (free) visual merge tool for Git? (on windows) [closed]

僤鯓⒐⒋嵵緔 提交于 2020-01-11 14:47:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . A similar question was already asked, but for Ubuntu. It would help to know if the tool is free as in beer or as in liber. Also, up and downs of the tool would be nice to know. 回答1: On Windows, a good 3-way diff/merge tool remains kdiff3 (WinMerge, for now, is still 2-way based, pending WinMerge3) See "How do