sách gpt4 ăn đã đi

git pull Lỗi "không thể giải quyết tham chiếu" "không thể cập nhật tham chiếu cục bộ"

In lại 作者:IT王子 更新时间:2023-10-29 01:09:48 29 4
mua khóa gpt4 giày nike

使用 git 1.6.4.2,当我尝试 git pull 时出现此错误:

error: unable to resolve reference refs/remotes/origin/LT558-optimize-sql: No such file or directory
From git+ssh://remoteserver/~/misk5
! [new branch] LT558-optimize-sql -> origin/LT558-optimize-sql (unable to update local ref)
error: unable to resolve reference refs/remotes/origin/split-css: No such file or directory
! [new branch] split-css -> origin/split-css (unable to update local ref)

我试过 git remote prune origin,但没有用。

câu trả lời hay nhất

尝试使用以下方法清理本地存储库:

$ git gc --prune=now
$ git remote prune origin

man git-gc(1):

git-gc - Cleanup unnecessary files and optimize the local repository

git gc [--aggressive] [--auto] [--quiet] [--prune= | --no-prune]

Runs a number of housekeeping tasks within the current repository, such as compressing file revisions
(to reduce disk space and increase performance) and removing unreachable objects which may have been
created from prior invocations of git add.

Users are encouraged to run this task on a regular basis within each repository to maintain good disk
space utilization and good operating performance.

man git-remote(1):

git-remote - manage set of tracked repositories

git remote prune [-n | --dry-run]

Deletes all stale remote-tracking branches under . These stale branches have already been
removed from the remote repository referenced by , but are still locally available in
"remotes/".

关于git pull 失败 "unable to resolve reference" "unable to update local ref",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2998832/

29 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress