repository

SVN Synchronize vs Update to Head (subclipse)

血红的双手。 提交于 2019-12-03 01:21:59
问题 I'm fairly new to both Subversion and Subclipse and am seeing some issues that lead me to believe there is a difference between updating to head, and synchronizing. Specifically I find that when I try to revert (using the subclipse history), I often get a message saying "Cannot reverse merge a range from a path's own future history, try updating first". My synchronize should ensure that I have the 'head' version of all the files in my branch on the REPO, but doing an "Update to head" does fix

DAO, Repositories and Services in DDD

前提是你 提交于 2019-12-03 01:14:02
问题 After reading several articles, I am starting to understand the difference between DAO and Repositories, but I find myself in trouble trying to understand the difference between Repositories and Services. For putting in short terms, in the OO paradigm: DAO : Class that contains the basic CRUD operations for one entity class. It has the necessary code to get or retrieve things of the underlying persistent storage system. Generally speaking, the methods receive object entities as parameters,

Repository Pattern Best Practice

試著忘記壹切 提交于 2019-12-03 01:12:25
问题 So I'm implementing the repository pattern in an application and came across two "issues" in my understanding of the pattern: Querying - I've read responses that IQueryable should not be used when using repositories. However, it's obvious that you'd want to so that you are not returning a complete List of objects each time you call a method. Should it be implemented? If I have an IEnumerable method called List, what's the general "best practice" for an IQueryable? What parameters should

Cloning a repository with SourceTree

社会主义新天地 提交于 2019-12-03 01:08:29
Can someone give me a quick walkthrough on simply cloning a repo with SourceTree? In Bookmarks, I click on Clone Repository. For Source Path I paste in the URL which looks like this: git@codebasehq.com:client/appname/ios-application.git But I get "This is not a valid source path / URL". I'm copying directly from the Repository Browser in codebase so I know the URL is correct. What else do I need to do? Y Zhang My solution was to change the Git version from 'Use Embedded Git' to 'Use System Git'. Because I installed GitHub on my computer earlier, it seems SourceTree chose that Git by default

How do I add a remote Git repository to an Ubuntu Server?

a 夏天 提交于 2019-12-03 01:02:31
问题 I have created a Git repository on my Desktop machine (Windows 7) with: git init git add <all my files> git commit -m "added my files" Now I have installed a new Ubuntu Server 10.10 on a machine on my LAN and installed OpenSSH. My home directory is /home/jonas and I created a directory ~/code/ to contain my projects. I can log in to the Ubuntu Server from Windows 7 with Putty. I installed Git on the server with sudo apt-get install git Adding a remote repository Now I want to add my Git

Git repository within Git repository [duplicate]

放肆的年华 提交于 2019-12-03 00:59:40
This question already has answers here : How do I work with a git repository within another repository? (4 answers) I have a main git repository A and we are using sources out of another git repository B in a subdirectory of our main project. Now it would be good to have the B repository checked out within the A repository in this used subdirectory. If someone else then clones the repository of course he should get our main repository A and within that automatically the B repository. Let me visualize the directory structure: + main_repository - the root directory of the main Repository + src -

How safe is it to host sensitive data on repository sites like github, bitbucket, etc.? [duplicate]

爷,独闯天下 提交于 2019-12-03 00:54:22
This question already has answers here : How secure would github hosting be for private repositories? [closed] (4 answers) This is just a question out of curiosity. I am wondering how safe it is generally considered to host sensitive data on repository websites like Github, Bitbucket, etc.? Is it safe enough to get rid of all code on local machines and just store it all on there? How about safety in the sense of keeping company secrets? I notice these sites tout big companies like Google and Yahoo use their services, but do these big companies actually store their trade secrets and important

How to build a generic repository

为君一笑 提交于 2019-12-03 00:43:27
I'm developing a web application in ASP.NET MVC with NHibernate. Based in articles and tutorials I've found at Google, I'm using Repository for my classes. I have 10 classes and 10 repositories. Today I figured out that 90% of mine repositories are exactly equal each other, except for the class. This is one example: public class PromocaoRepository:IPromocaoRepository { private ISession Session; public PromocaoRepository() { this.Session = NHibernateSessionFactory.OpenSession(); } public void Add(Promocao promocao) { using(ITransaction transaction = this.Session.BeginTransaction()) { this

Multiple Git repositories for each Eclipse project or one Git repository

China☆狼群 提交于 2019-12-03 00:42:20
问题 I am in the process of moving to Git from SVN. In SVN I had multiple eclipse projects in a single SVN repository that is convenient for browsing projects. I was going to move to having one git repository per eclipse project but EGit suggests doing otherwise. The guide for EGit suggests putting multiple projects into a single Git repository. Looking at similar questions such as this suggest one project per repository. Which approach is best practice and what do people implement? 回答1: It

Code Repository. Whats a good one? [closed]

ⅰ亾dé卋堺 提交于 2019-12-03 00:21:01
I am trying to setup a repository at my work for all the code (mostly C, Assembler, batch basic) that my colleagues and I use. I know some things about repositories but cannot properly decide which ones are good or not. I have no experience with them but so far Apache Subversion and Python's repo look good. Are there any others that are good? Easy to use and to setup? Michael Shimmins Have a look at: Subversion Git Mercurial Perforce (free for Open Source projects or non-Enterprise users ) The technology you're looking for is called Source Control. A repository is a term used by most of the