您尚未登录。

公告

[通告] 本论坛迁移啦~请前往位于 https://forum.archlinuxcn.org/ 的新论坛。所有帖子和参与的用户都已经迁移。

您正在访问的是原 bbs.archlinuxcn.org 的静态存档。本页面的新地址位于 https://forum.archlinuxcn.org/t/topic/14186

#1 2025-07-08 16:54:08

lingye
会员
注册时间: 2025-07-08
帖子: 4

我在推送至aur仓库时出现问题

我遇到了这样的报错:
枚举对象中: 18, 完成.
对象计数中: 100% (18/18), 完成.
使用 8 个线程进行压缩
压缩对象中: 100% (13/13), 完成.
写入对象中: 100% (18/18), 16.68 KiB | 299.00 KiB/s, 完成.
总共 18(差异 2),复用 0(差异 0),包复用 0(来自  0 个包)
remote: error: The following error occurred when parsing commit
remote: error: 2e2377b33e6c7ee0956a52ff256ed946030c8029:
remote: error: the repository must not contain subdirectories
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/nightnote.git
! [remote rejected] master -> master (hook declined)
错误:无法推送一些引用到 'ssh://aur.archlinux.org/nightnote.git'

但是文件夹里并没有多余的文件夹:
Permissions  Size User Date Modified Name
drwx------@     - root  8 7月  16:18  .git
.rw-------@   193 root  8 7月  16:12  .SRCINFO
.rw-r--r--@ 6.5Ki root  8 7月  16:13  nightnote-25.0708.1-1-aarch64.pkg.tar.xz
.rwx------@  70Ki root  8 7月  13:19  nnote
.rw-------@   284 root  8 7月  16:11  PKGBUILD

我该怎么办呢,求助大家。

离线

#2 2025-07-08 17:10:38

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 9,397
个人网站

Re: 我在推送至aur仓库时出现问题

用 git rebase -i 把有问题的提交修了。

离线

#3 2025-07-08 17:33:42

lingye
会员
注册时间: 2025-07-08
帖子: 4

Re: 我在推送至aur仓库时出现问题

依云 说:

用 git rebase -i 把有问题的提交修了。

解决了,谢谢!

离线

页脚