English 中文(简体)
您如何保留DIDN T工作守则? [闭门]
原标题:How do you preserve code that DIDN T work? [closed]

在发展过程中,我有时会尝试一种不会消失的技术或方法。 一旦我决定转而执行另一项任务或尝试另一项技术,完成同样的任务,我就永远不会确定与非工作守则有何关系。 我想把它当作我所尝试的记录,因此,我知道什么是徒劳的,甚至是试图再次工作的一个起点。

通常,我只剩下该守则,发表评论,不去参加科索沃安全局,有些时间。 然而,随着《刑法》的颁布,这已成为一种痛苦,必须按《世界化学品安全方案》的承诺加以执行。 我当时正在使用“仪表”功能用于临时储存,但我不相信这种用途是适当的。

How do you handle code you want saved for posterity, but don t want as part of your mainstream code base?

最佳回答

页: 1

  1. Use branches liberally ( jQuery_slider_nivo, jQuery_slider_zurb, etc )
  2. You re right that stash is not the place to be storing this code for a length of time
  3. If you want to check the code simply switch to that branch
  4. If you want it back in simply merge the branches

也可开展档案业务(美元=青少年):

  1. Archive it: $ git checkout -b archive/<branchname> <branchname>
  2. Delete it: $ git branch -d <branchname>
  3. Restore it: $ git checkout -b <branchname> archive/<branchname>

a)=

......或你所称的分行数

问题回答

每当你开始“任务”就设立一个部门。 以后,你可以保留你在这个部门所尝试的所有东西,并将工作守则交给主人。

你可能为您的特征设立了一个单独的分支,如<条码>/日./代码>。 现在,你可以把这个(不是这样冷却的)分支从你们的手法移走。

git branch -m feature/doSomethingCool archive/doSomethingCool-try1

并创建一个新的分支<代码>feature/doSomethingCool,develop。 有了<条形形形形形形形形形形形形形色色/多SomethingCool-try1-branch,你可以做你想要做的事情,甚至忽视或删除。





相关问题
Tracking Versions, Builds, Revisions, with TortiseSVN

I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

How to handle different csproj [closed]

I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签