我不得不在工作时在窗户机上工作,但在家里有一台计算机。我所有的轨迹代码都写在使用RVM并使用GIT(GIT)部署到 heroko的mac上。
不过我想开始研究窗口机器的代码(代码以投影箱保存, 自动同步)
我记得那条线的尾声在Git中造成了地狱 当我曾经写过Python代码...
我不得不在工作时在窗户机上工作,但在家里有一台计算机。我所有的轨迹代码都写在使用RVM并使用GIT(GIT)部署到 heroko的mac上。
不过我想开始研究窗口机器的代码(代码以投影箱保存, 自动同步)
我记得那条线的尾声在Git中造成了地狱 当我曾经写过Python代码...
您可以配置 git 将行尾转换为一个或另一个 : < a href="http://help.github.com/line-ends/"rel="no follow" >http://help.github.com/line-ends/
当您描述路径时, 请务必使用独立构建 OS 的方法, 如 File.join
。
You need to use the core.autocrlf feature. From the manual
core.autocrlf Setting this variable to "true" is almost the same as setting the text attribute to "auto" on all files except that text files are not guaranteed to be normalized: files that contain CRLF in the repository will not be touched. Use this setting if you want to have CRLF line endings in your working directory even though the repository does not have normalized line endings. This variable can be set to input, in which case no output conversion is performed.
git config --global core.autocrlf true
所以,在你的窗户机里, 把这个功能设置为真实, 这意味着,
在承诺期间, 您的行尾将自动更改为 LF, 当您退出时, 您的本地文件将会有 Windows 线尾( 即 CRLF)
git config --global core.autocrlf input
在您的非窗口机器中,设置此设置为输入,这意味着
不做任何转换, 我不受任何行末更改的影响
您为什么不在您的工作机器上配置 exoko? 您已经有版本控制( git) 来同步和共享您的应用程序 。
collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...
We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...
As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...
I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?
I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...
I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml
guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...
I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...