version-control

Three-way-merge - different philosophies?

天大地大妈咪最大 提交于 2019-12-13 13:27:42
问题 I've been a user of UltraCompare Pro since it first came out, and I think it's a very full-featured compare and merge tool. However, since I have been looking more closely into DVCS, I found that it handles three-way merges differently than (most?) other tools out there. So I wonder why that is, and whether I'm missing something because of it. In UltraCompare, there are three merge panels (let's call them base, local and other). All the merge action happens within these panels. In practice,

Version control of deliverables

感情迁移 提交于 2019-12-13 13:24:33
问题 We need to regularly synchronize many dozens of binary files (project executables and DLLs) between many developers at several different locations, so that every developer has an up to date environment to build and test at. Due to nature of the project, updates must be done often and on-demand (overnight updates are not sufficient). This is not pretty, but we are stuck with it for a time. We settled on using a regular version (source) control system: put everything into it as binary files,

Calculated measure/dimension

自作多情 提交于 2019-12-13 12:32:29
问题 I'm relatively new to MDX and am trying to accomplish what I think should be an easy thing, but I haven't found any solution. I have a sales cube and one of the measure is profit which can be negative or positive. I want to get one measure which is effectively the sum of positive profit, i.e. only include in the new measure those profit numbers that have a positive profit. The trick here is this is on the row detail level and something like WITH MEMBER Measures.PositivePNL as IIF (Measures

GIT central repository on Windows network share

你。 提交于 2019-12-13 12:28:09
问题 Our company is looking at setting up a central GIT repository. As we are using Windows, we've been looking at using a network share solution, based on the following articles here and here. However, after thinking about this I have some questions. (Warning - I'm a noob at GIT) It seems that this solution might allow developers to cause problems with the repo, by allowing them to map to the drive and play with the files (outside of the GIT client). Is there a way to prevent this? Or do I

In subversion, how can I un-hijack a file?

自作多情 提交于 2019-12-13 12:26:46
问题 Currently, my team has a set of files that should not be under version control, but they are. I would like to remove them from our subversion repository, and allow everyone to keep their local versions. What is the best way to accomplish this? Deleting the files removes them from the repository, as well as everyone's local file system. Using the --keep-local flag almost works. It allows me to keep the copy on my machine, deletes it from the repository, but still removes the files from

how should the other remote site using gerrit server based on a mirror repo?

偶尔善良 提交于 2019-12-13 12:21:49
问题 There are two develop sites in my company to cooperate on develop SW for customer, and my job is collecting fix from both sites to make vendor release of our company, and delivered it to customer release hub. (customer release hub using another git server in site C, and besides me, there were CM from other companies would provide similar vendor release to customer release hub for releasing.) after self-study, now I had created gerrit/git system on Site A sucessfully, developer in site A could

getting started with fossil

眉间皱痕 提交于 2019-12-13 12:12:52
问题 I just got started with fossil. My reasons for selecting fossil are: cross-platform single exectuable single repository file (typical extension .fossil) supposedly easy to use (but aren't they all?) I have several questions. Context: Suppose I want to keep track of changes to every file inside several directories, aptly named dir1, dir2, etc. Suppose I want to keep a copy on a USB stick. Suppose I want to keep a copy on another partition of the same disc as I move back and forth between Linux

How do I create a new git repository from a folder in an existing git repository?

牧云@^-^@ 提交于 2019-12-13 12:06:02
问题 I want to create a new git repository of a folder under an existing git repository. I want the history to be preserved in the new repository. How do I create this new git repository? 回答1: You can clone it, and then apply on the clone a filter-branch in order to split that repository , extracting only the directory you want (with its full history). See Detach subdirectory into separate Git repository Note the git clone --no-hardlinks /XYZ /ABC used during the cloning step: The --no-hardlinks

How do I use --relative with git format-patch?

微笑、不失礼 提交于 2019-12-13 12:04:44
问题 When I use git diff --relative HEAD^..HEAD , I get some nice output for a patch that I strip out the path outside the directory it is in. I am starting to use git format-patch and I would like to also use --relative but don't see any options for that. How would I get the same effect? Thanks 回答1: git help format-patch shows git format-patch [-k] [(-o|--output-directory) <dir> | --stdout] ... **[<common diff options>]** So, just git format-patch --relative . 来源: https://stackoverflow.com

How do I remove an author from a git repository?

若如初见. 提交于 2019-12-13 12:02:01
问题 If I create a Git repository and publish it publicly (e.g. on GitHub etc.), and I get a request from a contributor to the repository to remove or obscure their name for whatever reason, is there a way of doing so easily? Basically, I have had such a request and may want to replace their name and e-mail address with something like "Anonymous Contributor" or maybe a SHA-1 hash of their e-mail address or something like that. 回答1: Jeff is quite right, the right track is git filter-branch. It