repository

How do I fix missing git remote details?

╄→尐↘猪︶ㄣ 提交于 2019-11-30 08:52:25
Some repository clones I have allow me to do this: % git pull % git push But other repositories require me to type: % git pull origin master % git push origin master I think I am missing something in the latter case - does anyone know what is (not) going on here? I am using the latest git version, just obviously not using it well. Brian Gianforcaro If you cd into your repository directory and then open up your .git/config file in an editor. Append this to the end of the file: [branch "master"] remote = origin merge = refs/heads/master This is pretty much just an alias so git knows by default

Migrating Subversion Repositories across servers

怎甘沉沦 提交于 2019-11-30 08:37:17
We're in the process of moving servers and one of the last items is moving over the svn repositories. There are about 10 gigs of various svn repositories. They were created using this command: svnadmin create --fs-type fsfs Server A(original) has svn 1.4 while Server B(target) has svn 1.6. My thought was to use rsync to migrate the whole set of repositories (they are all in 1 folder on the server), but I am worried that some things might either not get migrated or I need special switches for rsync for this to work. Most online tutorials only talk about moving 1 repository at a time, for

How to replace a git repository?

*爱你&永不变心* 提交于 2019-11-30 08:12:11
I created a git repository and updated it with some stuff. Later I created a new directory for this project and initialized new git for it. Now I want to push changes and replace the old contents in the repository. When I run git push origin master I get ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:Username/repo2.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details. What can I do to solve

Stopping Maven index update eclipse

白昼怎懂夜的黑 提交于 2019-11-30 07:49:53
This question might have been asked before. Every time I open my eclipse it takes forever to update the Maven repo indexes. I do not have any Maven Plugin installed on it but still does it. Does anyone know how to disable this feature because this is becoming pain for me. thanks Window -> Preferences -> Maven -> Download repository index updates on startup (uncheck) maybe also useful for you Window -> Preferences -> Maven -> Do not automatically update dependencies from remote repositories (check) If you have something like this (note the <updatePolicy> ): <repositories> <repository> <id>foo

Creating Github Repository from command line

Deadly 提交于 2019-11-30 07:28:44
问题 I have been trying to push my local repo changes to github from command line. I have been away from git for a while now so I don't remember a few things. For the past hour I have been trying to push the repo without creating a remote repo on Github.com. As far as I remember, git push origin master/ git push is enough to push the local changes and if necessary create a repo on the remote server. However git push wouldn't let me push and automatically create the repo. So to save time, I created

maven repository setting.xml the mirrorof

∥☆過路亽.° 提交于 2019-11-30 07:21:32
<mirrors> <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://my.repository.com/repo/path</url> </mirror> --> <mirror> <id>nexus-osc</id> <mirrorOf>central</mirrorOf> <name>Nexus osc</name> <url>http://maven.oschina.net/content/groups

Multiple DbContexts in N-Tier Application

自古美人都是妖i 提交于 2019-11-30 07:01:04
问题 I'm creating my first N-Tier MVC application and I've run into a road block with how to manage multiple DbContexts with my database first approach. I have the following layers Presentation Service (WCF) Business Data Access I don't want an entity framework reference in my service layer but I don't see how to create an Interface or something to manage two contexts. I have it working with a single context warpped in a IDatabaseFactory but I can't seem to find an approach to manage two. Below is

Git's local repository and remote repository — confusing concepts

做~自己de王妃 提交于 2019-11-30 06:10:46
问题 If I understand correctly, Git has two sorts of repositories: one called local, another called remote. My questions are extremely naive ones about the two types of repositories. Is that correct to say Git local repository is the one on which we will make local changes, typically this local repository is on our computer. Git remote repository is the one of the server, typically a machine situated at 42 miles away. Another question: some tutorial shows me this workflow mkdir myproject cd

Maven repository hosting for non-public artifacts? [closed]

六月ゝ 毕业季﹏ 提交于 2019-11-30 05:38:44
Is there some hosting solution, be it paid or free, that offers explicit maven repository hosting for non-public artifacts, preferably with support? These are the alternatives I'm aware about: Hosting on your own public server with credentials For open source projects, there is free sonatype hosting Hosting on Amazon It can be hosted on github , google code or some other VCS hosting However, all of these either require some maintenance overhead beyond just using the repository manager (beyond just using nexus) and/or are not really fully supported solutions, or are not meant for closed-source

How to clean old dependencies from maven repositories?

限于喜欢 提交于 2019-11-30 05:34:28
I have too many files in .m2 folder where maven stores downloaded dependencies. Is there a way to clean all old dependencies? For example, if there is a dependency with 3 different versions: 1, 2 and 3, after cleaning there must be only 3rd. How I can do it for all dependencies in .m2 folder? If you are on Unix, you could use the access time of the files in there. Just enable access time for your filesystem, then run a clean build of all your projects you would like to keep dependencies for and then do something like this (UNTESTED!): find ~/.m2 -amin +5 -iname '*.pom' | while read pom; do