version-control

Ignore folder in stable, but not in devel branch

我与影子孤独终老i 提交于 2020-01-13 17:08:12
问题 I have the following folder structure for my project src/ test_unit/ package1/ test_unit/ package2/ test_unit output/ In my devel branch all folders should be version controlled, but the master/stable branch should ignore and not merge test_unit/ and output/ folder. How can I achieve this? With .gitignore it won't work because .gitignore will be merged between the branches. 回答1: Try a combination of .gitignore and .gitattributes files: in master/stable branch, you could have .gitattributes

How would you avoid “Xcode, Subversion Error: 155007 (Path is not a working copy directory)”?

一个人想着一个人 提交于 2020-01-13 10:44:24
问题 I am not able to see the commit option after I make changes to my working copy, but I ensured that my settings for svn were correct. What exactly is the problem with this error message? Xcode is showing: Your path is not a working copy What should I do to resolve this? 回答1: The blog post "Xcode, Subversion Error: 155007 (Path is not a working copy directory)" and its comment are pretty much the reference on this kind of error. Simple Workaround : Delete your local copy ( cd myxcodeproject; rm

Git blame ignoring specific commit [duplicate]

烈酒焚心 提交于 2020-01-13 09:01:14
问题 This question already has answers here : Git blame — prior commits? (13 answers) Closed last month . I use git blame command to see in which commit have been added some particular code line, but sometimes I bump into the same problem: someone has made some kind of code formatting, or has changed function interface and refreshed all client code. Eventually git blame show me only this last commit on particular code line. How ignore this commit and see what happened before it? Of course I can

How to get a Count of the Items in my TFS Local Workspace?

吃可爱长大的小学妹 提交于 2020-01-13 08:41:07
问题 When I open my Visual Studio and get a solution from our TFS I have following message in the Output Window: TF401190: The local workspace [MACHINE_NAME;USER_NAME] has 158412 items in it, which exceeds the recommended limit of 100000 items. To improve performance, either reduce the number of items in the workspace, or convert the workspace to a server workspace. This is not an error, but a warning and I can work OK, although I feel there is a real performance hit during my work. To resolve

How to get a Count of the Items in my TFS Local Workspace?

半世苍凉 提交于 2020-01-13 08:41:07
问题 When I open my Visual Studio and get a solution from our TFS I have following message in the Output Window: TF401190: The local workspace [MACHINE_NAME;USER_NAME] has 158412 items in it, which exceeds the recommended limit of 100000 items. To improve performance, either reduce the number of items in the workspace, or convert the workspace to a server workspace. This is not an error, but a warning and I can work OK, although I feel there is a real performance hit during my work. To resolve

Check out files modified outside VS from TFS

青春壹個敷衍的年華 提交于 2020-01-13 07:37:13
问题 If a file is modified in Visual Studio, the files are automatically checked out from Team Foundation Server. However, sometimes there are files not modified in VS, is there command to check out those modified files only? 回答1: If you download the Team Foundation Server power tools, you can use the "tfpt online" command line. That said, I would try and avoid this way of working. TFS much prefers to know about files that you are checking out before you start editing them and your interaction

Git: What is exactly a 'working tree'? Is the same as 'working directory'?

一笑奈何 提交于 2020-01-13 07:01:26
问题 I am reading lots of documentation about Git and recently I have been looking for "working tree" concept, but I don't understand what exactly a "working tree" is. I have found this description: What is a working tree? that seems to be the easiest to understand. But I don't fully understand it. In the link I can read: The Working Tree in Git is a directory (and its files and subdirectories) on your file system So as far I can understand, the working tree is a folder on my computer. Right?

Is there a ruby gem that does diff between HTML documents?

老子叫甜甜 提交于 2020-01-13 05:33:07
问题 Doing a diff of two different html documents turns out to be an entirely different problem than simply doing a diff of plain text. For example, if I do a naive LCS diff between: Google</p> and Google</a></p> the diff result is NOT: </a> but /a></ I've tried most gems out there that claim to be html diff but all of them seem to be just implementing text based LCS diff. Is there any gem that does a diff while taking html tags into account? 回答1: After much searching for a gem to do this for me,

Jenkins checkout of GIT project fails with Permission denied fatal: unable to fork

荒凉一梦 提交于 2020-01-13 05:23:04
问题 I have a Freestyle Jenkins project that uses bitbucket as SCM with ssh as protocol and private key (not user/password). When I build the project on master it fails with below stacktrace, while it runs fine on agent. Notice error mentions: stderr: fatal: cannot exec '/var/lib/jenkins/workspace/foo_test@tmp/ssh1377177620135545595.sh': Permission denied fatal: unable to fork I checked the following: Running this as jenkins user from command line shows no problem. The folder /var/lib/jenkins

Flash Source Control - Best Practices

只谈情不闲聊 提交于 2020-01-13 03:20:30
问题 I'm working on a Flash project right now and I am having to force a designer into using our Source Control repository (SVN) to help manage and track the project. It's been a bit of an uphill battle to fully get him to embrace the benefits of source control, but it's coming along. I haven't had to use source control for a Flash project before other than on projects where I was the only person working on it. I'm starting to discover there are some addition workflow pieces you need to implement