标签: repository

Maven Snapshot Repository与Release Repository

快照存储库和发布存储库之间有什么区别?

这是关于设置存储库(如Artifactory,Nexus等)

release snapshot repository nexus maven

92
推荐指数
3
解决办法
7万
查看次数

我怎样才能在git裸存储库中取消提交最后一次提交?

考虑到有几个git命令在裸存储库中没有意义(因为裸存储库不使用索引而没有工作目录),

git reset --hard HEAD^ 
Run Code Online (Sandbox Code Playgroud)

不是解除对此类存储库中的最后一次更改的解除.

搜索通过互联网,所有我能找到相关的话题就是这个,在我提出这样做的方式有三种:
1."手动更新裁判(其中涉及水暖)";
2." git push -f来自非裸库";
3." git branch -f this $that".

您认为哪种解决方案更合适,或者有哪些方法可以做到这一点?不幸的是,我发现的关于git bare存储库的文档相当差.

git commit repository reset git-bare

88
推荐指数
3
解决办法
3万
查看次数

连接本地仓库与远程仓库

我有一个当地的回购.我创建了整个应用程序,但现在我想把它推到远程仓库.我也有远程回购.如何在不丢失任何工作的情况下连接这两个回购?

git repository

86
推荐指数
1
解决办法
8万
查看次数

"致命:不是git存储库(或任何父目录)"来自git status

此命令用于获取文件并编译它们:

git clone a-valid-git-url
Run Code Online (Sandbox Code Playgroud)

例如:

git clone git://cfdem.git.sourceforge.net/gitroot/cfdem/liggghts
Run Code Online (Sandbox Code Playgroud)

但是,git status(或任何其他git命令)然后给出上述fatal: Not a git repository (or any of the parent directories)错误.

我究竟做错了什么?

git clone repository git-clone git-status

85
推荐指数
6
解决办法
24万
查看次数

如何从Spring Data JPA GROUP BY查询返回自定义对象

我正在使用Spring Data JPA开发Spring Boot应用程序.我正在使用自定义JPQL查询按某些字段进行分组并获取计数.以下是我的存储库方法.

@Query(value = "select count(v) as cnt, v.answer from Survey v group by v.answer")
public List<?> findSurveyCount();
Run Code Online (Sandbox Code Playgroud)

它的工作和结果如下:

[
  [1, "a1"],
  [2, "a2"]
]
Run Code Online (Sandbox Code Playgroud)

我想得到这样的东西:

[
  { "cnt":1, "answer":"a1" },
  { "cnt":2, "answer":"a2" }
]
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点?

java spring jpa spring-mvc repository

85
推荐指数
5
解决办法
12万
查看次数

将大型Git存储库拆分为许多较小的存储库

一个SVN仓库成功转换到Git的,我现在有一个我想分解成多个更小的存储库,并保持历史上的一个非常大的Git仓库.

那么,有人可以帮助拆分可能看起来像这样的回购:

MyHugeRepo/
   .git/
   DIR_A/
   DIR_B/
   DIR_1/
   DIR_2/
Run Code Online (Sandbox Code Playgroud)

进入两个看起来像这样的存储库:

MyABRepo/
   .git
   DIR_A/
   DIR_B/

My12Repo/
   .git
   DIR_1/
   DIR_2/
Run Code Online (Sandbox Code Playgroud)

我试过以下几个方向在此之前的问题,但它试图把多个目录到一个单独的回购协议(时并不真正适合拆离(移动)子目录成独立的Git仓库).

git split repository git-filter-branch

84
推荐指数
4
解决办法
2万
查看次数

Git从另一个存储库拉出来

我有一个名为的存储库Generic,它是一个通用的应用程序.我已将其分叉到一个名为Acme的存储Generic库中,该存储库仅构建在应用程序存储库上,并为其添加了Acme Co品牌.

如果我对核心功能进行了更改Generic,我想Acme使用我对核心功能所做的最新更改来更新存储库Generic.我该怎么办?

据我所知,我基本上试图将上游存储库中所做的更改合并到当前的fork中.

如果它意味着什么,我正在尝试这样做,因为我有一个通用的应用程序,然后我为个人客户构建和品牌(如Acme本例所示).如果有更清洁的方法,请告诉我.

git version-control dvcs repository

82
推荐指数
3
解决办法
4万
查看次数

Github将存储库更改为错误的语言

我知道这不是一个大问题,但我喜欢我的Github在语言上多元化.我在Swift中编写了一个项目,当我提交时,它表示它在Objective C中.

我想这可能是因为Parse框架是用Objective C编写的,它检测到了,但有没有办法改变主存储库页面上的显示语言?

git github repository github-linguist

78
推荐指数
6
解决办法
4万
查看次数

如何强制Maven使用我的本地存储库而不是去远程repos来检索工件?

我在Mac Yosemite上使用Maven 3.3.3和Java 8.我有一个多模块项目.

    <modules>
            <module>first-module</module>
            <module>my-module</module>
                …
    </modules>
Run Code Online (Sandbox Code Playgroud)

当我构建我的一个子模块,例如,上面的"my-module",使用"mvn clean install"时,构建尝试从我在〜/ .m2中定义的远程存储库下载子模块工件. /settings.xml文件.输出低于

[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building my-module 87.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://my.remoterepository.com/nexus/content/repositories/snapshots/org/mainco/subco/first-module/87.0.0-SNAPSHOT/maven-metadata.xml
Downloading: http://download.java.net/maven/2/org/mainco/subco/first-module/87.0.0-SNAPSHOT/maven-metadata.xml
Downloaded: https://my.remoterepository.com/nexus/content/repositories/snapshots/org/mainco/subco/first-module/87.0.0-SNAPSHOT/maven-metadata.xml (788 B at 0.9 KB/sec)
Downloading: https://my.remoterepository.com/nexus/content/repositories/snapshots/org/mainco/subco/first-module/87.0.0-SNAPSHOT/first-module-87.0.0-20151104.200545-4.pom
Run Code Online (Sandbox Code Playgroud)

在尝试从远程存储库下载之前,如何强制Maven先检查我的本地〜/ .m2/repository?下面是我在〜/ .m2/settings.xml文件中定义远程存储库的地方......

<profile>
    <id>releases</id>
    <activation>
        <property>
            <name>!releases.off</name>
        </property>
    </activation>
    <repositories>
        <repository>
            <id>releases</id>
            <url>https://my.remoterepository.com/nexus/content/repositories/releases/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>
</profile>
<profile>
    <id>snapshots</id>
    <activation>
        <property>
            <name>!snapshots.off</name>
        </property>
    </activation>
    <repositories>
        <repository>
            <id>snapshots</id>
            <url>https://my.remoterepository.com/nexus/content/repositories/snapshots/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>
</profile>
Run Code Online (Sandbox Code Playgroud)

编辑: …

artifacts repository maven-3 maven

77
推荐指数
7
解决办法
14万
查看次数

如何信任apt存储库:Debian apt-get update错误公钥不可用:NO_PUBKEY <id>

尝试在Debian Etch安装上更新一些存储库,并通过运行"apt-get update"获得以下错误

W: GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh public key is not available: NO_PUBKEY 07DC563D1F41B907
W: You may want to run apt-get update to correct these problems
Run Code Online (Sandbox Code Playgroud)

具有讽刺意味的是它指示我运行apt-get update是一个不错的踢球者......

debian apt upgrade gnupg repository

71
推荐指数
2
解决办法
14万
查看次数