version-control

Do I have to 'git add' a file each time it gets committed?

故事扮演 提交于 2019-12-23 08:38:52
问题 I've used Mercurial before but plan on switching to Git in the near future. All of the tutorials I've seen that explain how Git works show that files are added to the stage ('git add') before each commit, regardless of whether they have been tracked before. Mercurial also has a command that works in a similar way ('hg add'), but from what I remember, you only need to do 'add' once. For example, the steps for a new repository look something like this: hg init hg add . hg commit "Initial commit

Can I move my Mercurial working directory to another location?

百般思念 提交于 2019-12-23 07:55:58
问题 I am new to Mercurial and version control in general, so I'm sure this is a pretty basic question but I have, as yet, been unable to find the answer. I am working on a small project which is under Mercurial version control. The project and the .hg repository are currently on my local drive (C:\MyProject.hg), however I would like to move the whole lot to another location (in this case a network drive) which is backed up every night. I would want this new location to become my working directory

Mercurial gives “invalid pattern” error for simple GLOB syntax

一个人想着一个人 提交于 2019-12-23 07:47:22
问题 I have the following in my .hgignore file: syntax: glob obj/* bin/* *.suo *.user *.ncb If I comment out the *. filters, the filtering works fine filtering out the files in the bin and obj folder, however, if I keep those filters in I receive the following error: abort: c:\temp\.hgignore: invalid pattern (relre): *.suo Note: The file is encoded in UTF-8 回答1: The error message from Mercurial tells us that your syntax: glob line is not read by Mercurial. Patterns in ignore files default to

How to manage IDE files in a git repository?

折月煮酒 提交于 2019-12-23 07:28:51
问题 The application is developed using Sencha Architect, which uses a host of auxiliary files for managing various IDE-related things (export paths, versioning of the IDE etc.). Some of these files will change every time a team member just opens a project in the Sencha Architect IDE. To give an example of a particularly annoying change, consider the property exportPath in the Architect-generated *.xds files. I will have a server of choice which I publish to, to a specific path, and other team

Project …xcodeproj cannot be opened because it is missing its project.pbxproj file

会有一股神秘感。 提交于 2019-12-23 06:56:53
问题 I was trying to merge branches and it resulted in the error " Unable to open project… cannot be opened because the project file cannot be parsed ". I then tried to take the advice of other stackoverflow responses (namely to edit the file to remove the corruption), but was unable to edit the file. It appears that this is actually a directory, so maybe the structure of this changed with version 4.4 of xcode and since the response to Unable to open project... cannot be opened because the project

Xcode workspace source control only working for first added project

倾然丶 夕夏残阳落幕 提交于 2019-12-23 06:03:38
问题 I created a Workspace in Xcode 4.4 and an initial project. All works perfectly well. Source control with git is fine. When I add new projects with source code tracking enabled to the Workspace (using the + button at the bottom of the project navigator) those projects don't allow me to manage source control from the Workspace. Yet, those projects do get .git directories and command line git works perfectly well with them. The first project initially added to the workspace continues to have

Xcode workspace source control only working for first added project

徘徊边缘 提交于 2019-12-23 06:01:34
问题 I created a Workspace in Xcode 4.4 and an initial project. All works perfectly well. Source control with git is fine. When I add new projects with source code tracking enabled to the Workspace (using the + button at the bottom of the project navigator) those projects don't allow me to manage source control from the Workspace. Yet, those projects do get .git directories and command line git works perfectly well with them. The first project initially added to the workspace continues to have

How do medium to large development teams constantly push changes to a DVCS?

戏子无情 提交于 2019-12-23 05:16:07
问题 The company I work for is attempting to get off of StarTeam, a centralized VCS, and hopefully into something better. I don't want to just pick SVN because it's the "easy option" (most similar to what we do today). Can someone help me understand how a medium to large team of developers changing roughly 150 files per day can operate on a DVCS like Git or Mercurial? We have: 50 developers working on a single repository that has 15 years of history 15,000 files (mostly code/text) Approximately

Project management of both mixed and binary files

最后都变了- 提交于 2019-12-23 04:52:42
问题 we develop software which also includes a lot of art assets (binary files). We would like to version control our source code, but do not keep track of binary files changes (artists works separately and upload new art assets). However, one checkout should produce full tree of both source and art. This is needed because we want to run continuous integration system afterwards (nightly builds, testing). What you could recommend? Maybe any of those web hosted apps allows one to do that. 回答1: I

A good version control application [closed]

╄→гoц情女王★ 提交于 2019-12-23 04:42:37
问题 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 4 months ago . What is the best version conrtol application? I'll setup it to my Windows 7. I have installed WAMP. So it could be eider Windows 7 application or PHP application. And my purpose is to manage / version-control PHP files only. 回答1: For windows, it's hard to beat the simplicity