04 2012 档案
摘要:0. FAQ First Q: I heard that Subversion is an Apache extension? Does this mean I have to set up Apache to use Subversion? A: The short answer: no. The long answer: if you just want to access ...
阅读全文
摘要:Like many organizations using Rails, we have caught the git wave, and are in a state of transition between git and Subversion. Our open-source work is stored in git repositories, but our client work i...
阅读全文
摘要:solution: sudo chmod -R g+rws /var/lib/svn/stdrepo
阅读全文
摘要:sudo apt-get install git-core git-svn
阅读全文
摘要:实现远程用putty登录管理ubuntu,或者登录虚拟机中的ubuntu登录不上的解决方案。 1.先明确你能ping通远程的ubuntu或者虚拟机。 2.如果还不能登录,分析原因是大多都没有真正开启ssh-server服务。最终成功的方法如下: sudo apt-get install openssh-server Ubuntu缺省安装了openssh-client,所以在这里就不安装了...
阅读全文
摘要:Checkout the SVN repository in standard layout (trunk/, branches/, tags/) using -s. git svn clone -s https://192.168.117.216/repository/cooceo/cooceo-searchcd cooceo-searchCleanup unnecessary files a...
阅读全文
摘要:Cloning a Subversion Repository $ git svn clone <subversion-url> ?optional-directory-name?Synchronizing With Upstream$ git svn rebasePushing Changes Upstream$ git svn dcommitRules and GuidelinesThere...
阅读全文
摘要:This wiki document explains how to setup Subversion alias SVN on Ubuntu. The intended audience is experienced Linux users and system administrators. Introduction If you are new to Subversion, this s...
阅读全文
摘要:Many of the utilities in Ubuntu Linux use a text editor to allow you to edit configuration options and files. An example of this is using the crontab command, which allows you to edit your cron jobs u...
阅读全文
摘要:To create an instance of a user control programmaticallyIn the user control, be sure that the@Controldirective contains aClassNameattribute that assigns a class to the user control.The following example sets theClassNameattribute to strongly type a user control.<%@ Control className="MyUserC
阅读全文
摘要:ExamplesThis example causes the browser to reload the document every two seconds.<meta http-equiv="refresh" content="2">This example sets the character set for the document.<meta http-equiv="Content-Type" content="text/html; charset=utf-8">This exa
阅读全文
摘要:The two culture settings do not have to have the same value. Depending on your application, it might be important to set them separately. An example is a Web auction site. TheUICultureproperty might change for each Web browser, whereas theCulturestays constant. Therefore, prices are always displayed
阅读全文
摘要:git pull is indeed equivalent to the two steps: git fetchgit merge origin/master
阅读全文
摘要:GOALS Learn how to revert changes that have been committed to a local repository. Undoing Commits01 Sometimes you realized that a change that you have already committed was not correct and you ...
阅读全文
摘要:GOALS Learn how to revert changes that have been staged Change the file and stage the change01 Modify the hello.rb file to have a bad comment FILE: hello.rb # This is an unwanted but staged c...
阅读全文
摘要:GOALS Learn how to revert changes in the working directory Checkout Master01 Make sure you are on the lastest commit in master before proceeding. EXECUTE: git checkout masterChange hello.rb02...
阅读全文
摘要:git status, git add, git commit, and git checkoutare such common commands that it is useful to have abbreviations for them.Add the following to the .gitconfig file in your $HOME directory.FILE: .gitconfig[alias] co = checkout ci = commit st = status br = branch hist = log --pretty=format:\"%h %
阅读全文
摘要:The Ultimate Log Format Over time, I’ve decided that I like the following log format for most of my work. EXECUTE: git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=shortIt looks like th...
阅读全文
摘要:Content Page_PreInit Content Controls Init MasterPage Controls Init MasterPage_Init Content Page_Init Content Page_PreLoad Content Page_Load MasterPage_Load Content Controls...
阅读全文
摘要:using System;using System.Web.DynamicData;using System.ComponentModel.DataAnnotations;[MetadataType(typeof(ProductMetaData))]public partial class Product{}public class ProductMetaData{ // Applying ...
阅读全文
摘要:1, embedded resource2, add webresource in assemblyInfo.cs3, add js reference with script managerNote: please pay attension the js file name.
阅读全文
摘要:Within ASP.NET, attributes and elements take precedence in the following order (first to last):1. Theme attributes in the @ Page directive2. <pages Theme=”themeName”> elements in the <system.web> section of aWeb.config file3. Local control attributes4. StyleSheetTheme attributes in the @
阅读全文
摘要:attend,join,participate,take part in这些动词或词组均含“参加,加入”之意。attend侧重参加或出席会议或学术活动等。join普通用词,指加入党派、团体或游戏活动等。participate正式用词,特指参加团体活动,暗示以一个积极的角色参加。take part in侧重参加某项群众性、集体性的事业、工作或活动,突出参加者在其中发挥一定的作用。
阅读全文
摘要:mkdir /c/@project/HelloGitcd /c/@project/HelloGitgit initgit add .git commit -am 'Initial load'mkdir c:/dropbox/repositories/vpubgit remote add origin c:/dropbox/repositories/vpubgit push origin mastercd c:/dropbox/repositories/vpubgit init --bare# Dropbos is a free file-sharing and syncing
阅读全文
摘要:1.Now take a second to look at that diagram and realize what it did. It essentially undid the last commit you made. When you rungit commit, Git will create a new commit and move the branch thatHEADpoints to up to it. When youresetback toHEAD~(the parent of HEAD), you are moving the branch back to wh
阅读全文
摘要:Renaming and Removing filesTo rename a file in the indexandthe working directory:$ git mv README readme$ git ls-filesreadme$ git status# On branch master# Changes to be committed:# (use "git reset HEAD ..." to unstage)## renamed: README -> readme#And to remove a file from the working di
阅读全文