version-control

Is there a text editor that will “pretty print” for display without changing the underlying text?

感情迁移 提交于 2020-01-03 02:55:29
问题 There are two competing requirements 1) I want to pretty print so that I can read and understand code written by my peers 2) I don't want to check in the pretty printed code to source control because... It might not meet the coding standard where I work When reviewing history in source control, formatting changes obscure the 'real' changes. For discussion of problems checking in formatting changes, see this other stackoverflow question Committing when changing source formatting? At the same

Ignoring server config files in git

佐手、 提交于 2020-01-03 02:49:12
问题 I have a file in my web project that sets up the site db connection. Obviously, this has different settings for the staging and live branches of the site, and I need it to contain my local dev settings on my machine. The file needs to be in the repo, but now that it's there it doesn't need to be tracked. I've followed the advice in this question (and others): How to ignore files only locally in git? which has stopped git telling me about changes on a given branch, but if I try to change

Versioning an assembly info past the UInt16 barrier

十年热恋 提交于 2020-01-02 17:25:26
问题 In the past ive usually used the changeset or svn number to version the binary e.g. 1.1.123.3 where the large number is the changeset or rev from the source control system. However, with the system im now using we are well past the uint barrier at something like 70000+ changesets so that causes an overflow and a compiler error when used as the asssembly version attribute or assembly file version attribute. See: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute

Using git fast-export to export a repo starting at a given commit

余生颓废 提交于 2020-01-02 10:24:29
问题 I am currently trying to merge the current repo at work with one that was converted from my work's old svn repo. I want the new repo (we'll call it A) to be merged with the current working repo (B). B is the result of a failed attempt to convert the svn repo to git with the history intact. A is the second attempt. If I just merge B with A, there will be duplicate commits for everything in the old svn repo. I would like to only include the history from B that happened after the last svn commit

How do you rollback to a previous Gemfile.Lock?

瘦欲@ 提交于 2020-01-02 10:02:39
问题 I recently ran 'bundle update,' and it updated the Twitter-bootstrap-rails gem to the latest version. Ever since then, the header size has changed, and I would like to roll back to the previous gem versions for all my gems. I tried rolling back to my previous gemfile and bundle updating, but the problem was I didn't specify versions in my gemfile so it doesn't know to degrade a version. I also tried checking the specific previous version and specifying that, but I think all the dependencies

How to avoid extra files when using clearfsimport?

和自甴很熟 提交于 2020-01-02 09:39:49
问题 My fonts were delivered to the branch with the command clearfsimport -rec -nset <Source> <target> My problem is: supose in my next deliver I delete 10 files in different folders, I saw that there are many fonts in my first version and now I have fonts from my version1 that were deleted. I need to know how to solve this problem. 回答1: Looking at clearfsimport, you should consider the -rmname option: For all source-name arguments that are directories, performs an rmname operation on elements

source control with VB2005 Express

筅森魡賤 提交于 2020-01-02 07:34:29
问题 Can anyone suggest a good source control system that interfaces with VB2005 Express? As the Express editions of Visual Studio do not allow add-ins does this mean that I will not be able to integrate source control into the IDE? I'm used to the check-in/check-out process of SourceSafe integrated into VB6. Can anyone recommend TortoiseSVN as an alternative? 回答1: TortoiseSVN is a good choice. Although it won't integrate into the IDE (because of the plug-in problem you mentioned), it's really

Project files in repository [closed]

[亡魂溺海] 提交于 2020-01-02 06:49:07
问题 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 years ago . Is it common practice to keep project files (i.e. files other that source code files) in the version control repository? Also, are these files checked in/out on a regular basis? I always envisioned a SCC repository as 'clean' with only source code files. How do you manage the

Abuse of version control

回眸只為那壹抹淺笑 提交于 2020-01-02 05:59:32
问题 Is version control suited for a project where content is essentially binary data files ? I am thinking about package that weight something like 10 giga, with a lot of BMP and TGA files. Can subversion handle something like this ? Is it possible to generate some kind of binary patch that would allow users to download only what was modified. Rsync could be an option, but then there is no going back. I would really like to be able to go back to an earlier version easily. I looked at this

Abuse of version control

懵懂的女人 提交于 2020-01-02 05:59:21
问题 Is version control suited for a project where content is essentially binary data files ? I am thinking about package that weight something like 10 giga, with a lot of BMP and TGA files. Can subversion handle something like this ? Is it possible to generate some kind of binary patch that would allow users to download only what was modified. Rsync could be an option, but then there is no going back. I would really like to be able to go back to an earlier version easily. I looked at this