相关疑难解决方法(0)

git pull失败"无法解析引用""无法更新本地引用"

使用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)
Run Code Online (Sandbox Code Playgroud)

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

git git-pull

552
推荐指数
18
解决办法
34万
查看次数

Git错误:无法附加到.git/logs/refs/remotes/origin/master:权限被拒绝

我有一个奇怪的问题,我似乎无法解决.这是发生的事情:

我在github存储库中有一些我不想要的日志文件.我发现这个脚本完全从git历史中删除文件,如下所示:

    #!/bin/bash
set -o errexit

# Author: David Underhill
# Script to permanently delete files/folders from your git repository.  To use 
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2

if [ $# -eq 0 ]; then
    exit 0are still
fi

# make sure we're at the root of git repo
if [ ! -d .git ]; then
    echo "Error: must run …
Run Code Online (Sandbox Code Playgroud)

git github

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

Bitbucket:为什么我无法创建 master/x 分支

(这是在 SourceTree 中完成的)

我正在尝试创建一些分支(master/dev,, ) master/demomaster/live但这无法推送。例如,当我尝试推送时,master/demomaster/demo会给出以下错误:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master/demo:master/demo
fatal: HttpRequestException encountered.
   An error occurred while sending the request.

POST git-receive-pack (206 bytes)
remote: error: cannot lock ref 'refs/heads/master/demo': 'refs/heads/master' exists; cannot create 'refs/heads/master/demo'        
Pushing to https://x@bitbucket.org/x/x.git
To https://bitbucket.org/x/x.git
 ! [remote rejected] master/demo -> master/demo (failed to update ref)
error: failed to push some refs to 'https://x@bitbucket.org/x/x.git'



Completed with errors, see above.
Run Code Online (Sandbox Code Playgroud)

git bitbucket

2
推荐指数
1
解决办法
1949
查看次数

标签 统计

git ×3

bitbucket ×1

git-pull ×1

github ×1