草庐IT

git push : refs/heads/my/subbranch exists, 无法创建

这不可能在服务器上的repo中创建somme子子文件夹吗?如果我这样做:gitpushorigindev/master一切正常但如果我这样做gitpushorigindev/sub/master我明白了:error:'refs/heads/dev/sub'exists;cannotcreate'refs/heads/dev/sub/master'我用gitbranch-r检查并直接用ssh,没有创建dev/sub文件夹。怎么了? 最佳答案 它不是一个存在的文件夹,它是一个分支。(好吧,某处可能涉及文件夹/目录,也可能不涉及,因为引用

git push : refs/heads/my/subbranch exists, 无法创建

这不可能在服务器上的repo中创建somme子子文件夹吗?如果我这样做:gitpushorigindev/master一切正常但如果我这样做gitpushorigindev/sub/master我明白了:error:'refs/heads/dev/sub'exists;cannotcreate'refs/heads/dev/sub/master'我用gitbranch-r检查并直接用ssh,没有创建dev/sub文件夹。怎么了? 最佳答案 它不是一个存在的文件夹,它是一个分支。(好吧,某处可能涉及文件夹/目录,也可能不涉及,因为引用

git - 什么是 `git push origin master` ?帮助 git 的 refs、heads 和 remotes

我有一个关于gitpushoriginmaster做什么的问题:我知道origin是远程(又名GitHub)gitpushoriginmaster等同于gitpushoriginmaster_on_my_machine:master_on_github我不知道是否:master_on_my_machine等于/refs/heads/mastermaster_of_github等于/refs/remotes/origin/master如果相等,是否可以做gitpushoriginrefs/heads/master:refs/heads/origin/master?最后,我只想在以下情况下

git - 什么是 `git push origin master` ?帮助 git 的 refs、heads 和 remotes

我有一个关于gitpushoriginmaster做什么的问题:我知道origin是远程(又名GitHub)gitpushoriginmaster等同于gitpushoriginmaster_on_my_machine:master_on_github我不知道是否:master_on_my_machine等于/refs/heads/mastermaster_of_github等于/refs/remotes/origin/master如果相等,是否可以做gitpushoriginrefs/heads/master:refs/heads/origin/master?最后,我只想在以下情况下

git pull 显示 "fatal: Couldn' t find remote ref refs/heads/xxxx"并挂断

我创建了一个名为6796的分支,然后我将它推送到远程,在另一台机器上检查它,进行其他编辑,推送它,然后将它与mastermerge,并在另一台机器上本地和远程删除它(gitpush:6796)。现在,当我运行gitpull时:fatal:Couldn'tfindremoterefrefs/heads/6796user@host:~/path/to/repo$fatal:Theremoteendhungupunexpectedly但是gitpulloriginmaster工作正常。在我看来,某处有一个6796引用...如何解决这个问题? 最佳答案

git pull 显示 "fatal: Couldn' t find remote ref refs/heads/xxxx"并挂断

我创建了一个名为6796的分支,然后我将它推送到远程,在另一台机器上检查它,进行其他编辑,推送它,然后将它与mastermerge,并在另一台机器上本地和远程删除它(gitpush:6796)。现在,当我运行gitpull时:fatal:Couldn'tfindremoterefrefs/heads/6796user@host:~/path/to/repo$fatal:Theremoteendhungupunexpectedly但是gitpulloriginmaster工作正常。在我看来,某处有一个6796引用...如何解决这个问题? 最佳答案

git - 如何修复尝试使用 Git 推送时出现的 "remote: fatal error in commit_refs"错误?

当我尝试推送到master时,我得到:remote:fatalerrorincommit_refs我该如何解决这个问题? 最佳答案 就我而言,当我尝试推送时,GitHub已关闭。只需检查https://www.githubstatus.com/了解GitHub站点状态。启动后,您就可以推送了。 关于git-如何修复尝试使用Git推送时出现的"remote:fatalerrorincommit_refs"错误?,我们在StackOverflow上找到一个类似的问题:

git - 如何修复尝试使用 Git 推送时出现的 "remote: fatal error in commit_refs"错误?

当我尝试推送到master时,我得到:remote:fatalerrorincommit_refs我该如何解决这个问题? 最佳答案 就我而言,当我尝试推送时,GitHub已关闭。只需检查https://www.githubstatus.com/了解GitHub站点状态。启动后,您就可以推送了。 关于git-如何修复尝试使用Git推送时出现的"remote:fatalerrorincommit_refs"错误?,我们在StackOverflow上找到一个类似的问题:

Git 错误 : Unable to append to . git/logs/refs/remotes/origin/master: 权限被拒绝

我遇到了一个似乎无法解决的奇怪问题。这是发生的事情:我在github存储库中有一些我不想要的日志文件。我发现这个脚本可以像这样从git历史记录中完全删除文件:#!/bin/bashset-oerrexit#Author:DavidUnderhill#Scripttopermanentlydeletefiles/foldersfromyourgitrepository.Touse#it,cdtoyourrepository'srootandthenrunthescriptwithalistofpaths#youwanttodelete,e.g.,git-delete-historypat

Git 错误 : Unable to append to . git/logs/refs/remotes/origin/master: 权限被拒绝

我遇到了一个似乎无法解决的奇怪问题。这是发生的事情:我在github存储库中有一些我不想要的日志文件。我发现这个脚本可以像这样从git历史记录中完全删除文件:#!/bin/bashset-oerrexit#Author:DavidUnderhill#Scripttopermanentlydeletefiles/foldersfromyourgitrepository.Touse#it,cdtoyourrepository'srootandthenrunthescriptwithalistofpaths#youwanttodelete,e.g.,git-delete-historypat