repository

How can I add remote repositories in Mercurial?

穿精又带淫゛_ 提交于 2019-12-02 14:46:41
I am working with Git repositories in the following way: I have the master repository and several remotes on the different production machines. I am pushing the production code to the remotes and restart the services for the changes to take effect. I am about to switch from Git to Mercurial and I would like to know ahead how I can achieve something like that. You add entries to the [paths] section of your local clone's .hg/hgrc file. Here's an example of a section that would go in the .hg/hgrc file: [paths] remote1 = http://path/to/remote1 remote2 = http://path/to/remote2 You can then use

SVN Synchronize vs Update to Head (subclipse)

此生再无相见时 提交于 2019-12-02 14:42:51
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 the issue... so what gives? I've tried to check the SVN console to see what's changing, but it's not

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

自古美人都是妖i 提交于 2019-12-02 14:22:49
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 repository on my Desktop to the Server. I tried to follow the instructions from Pragmatic Version Control

SVN hooks for Windows

久未见 提交于 2019-12-02 14:08:26
I did a little googling and found that there isn't really a resource of SVN hooks for Windows. So I figured I'd start a wiki here to centralize it. If you contribute, please be sure to indicate: The name of the hook What the script does The actual script NOTE: I suspect posting an epic script will not be useful. Greg Dean Prevent commits with empty comments pre-commit prevents commits with empty comment Source: "c:\Program Files\Subversion\bin\svnlook.exe" log -t %2 %1 | FindStr [a-zA-Z0-9] IF %ERRORLEVEL% EQU 0 GOTO OK echo "Commit Comments are Required" >&2 exit 1 :OK exit 0 Greg Dean

Switching between multiple ssh keys in Git on Windows

拈花ヽ惹草 提交于 2019-12-02 14:04:36
I need to have multiple keys in my client to access two different accounts on Repository hosting. See https://redefy.repositoryhosting.com/support -> How do I manage multiple accounts with multiple keypairs on my client? I do not understand how to change between different ssh keys in Git on Windows, can anybody help me? I assume you use git bash and openssh. Like what it's written in the article, you can make a configuration file for ssh client that lists all of your accounts. You can write the following configuration in your own ssh client configuration file in ~/.ssh/config Host account-one

DDD - Persistence Model and Domain Model

本秂侑毒 提交于 2019-12-02 13:56:47
I am trying to learn domain-driven design (DDD), and I think I got the basic idea. But there is something confusing me. In DDD, are the persistence model and domain model different things? I mean, we design our domain and classes with only domain concerns in mind; that's okay. But after that when we are building our repositories or any other data persistence system, should we create another representation of our model to use in persistence layer? I was thinking our domain model is used in persistence too, meaning our repositories return our domain objects from queries. But today, I read this

Git pull from another repository

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 13:56:34
I have a repository called Generic , which is a generic application. I have forked it into a repository called Acme , which just builds upon the application stored Generic repository and adds Acme Co branding to it. If I make changes to the core functionality in Generic , I want to update the Acme repository with the latest changes I have made to the core functionality in Generic . How would I do that? As far as I can tell, I am essentially trying to merge the changes made in an upstream repository into the current fork. If it means anything, I'm trying to do this because I have a generic

What is the difference between GitHub and gist?

你。 提交于 2019-12-02 13:47:19
What is the purpose of gist and how is it different from regular code sharing/maintaining using GitHub? GitHub is the entire site. Gists are a particular service offered on that site, namely code snippets akin to pastebin. However, everything is driven by git revision control, so gists also have complete revision histories. Jayavignesh Vicky My Personal View of Gist and GitHub: Gist: Gist is a simple way to share code snippets and pastes with others. It is used when you need to share a sample piece of code or technique with your co-workers or friends. And GitHub GitHub, on the other hand,

save old git repository versions

橙三吉。 提交于 2019-12-02 12:51:39
问题 For the project I'm working on, I need to save all the files of a specific version of a git repository. I've looked through a fair amount of information regarding git checkout but I can't figure out what that does to the files in the directory I have, let alone save the version of that specific commit. Does anyone know a way to get the files of a git repository at a specific commit? Thanks. 回答1: Do a "git export" (like "svn export")? git checkout [commit sha] git archive --format zip --output

Cannot access repositories on OS X Server 3.2.1 with Xcode 6.0.1

时光毁灭记忆、已成空白 提交于 2019-12-02 12:25:27
EDIT: The problem is apparently solved with OSX Server Version 4. Original post: I have some git repositories on OS X server. Earlier I could access them from a remote Xcode without problems. After the upgrade to OS X Server 3.2.1 with Xcode 6.0.1 , I can no longer access them: If I try to add the server to a the Xcode via Preferences / Accounts, it says Xcode Server is unavailable If I try it via the terminal with the command git clone <repository path> it is asking for the password (i.e. it can access the server), and then says fatal: repository '<repository path>' not found It is really