草庐IT

ls-remote

全部标签

Git 显示错误 "does not appear to be a git repository fatal: The remote end hung up unexpectedly"

我刚刚在我的CentOSLinux服务器上安装了GIT并进行了配置。当我使用gitinit创建一个新的存储库时,它工作正常并且还提供了命令的输出。但是每当我尝试将远程存储库克隆到我的本地计算机文件夹时,它都会显示以下消息:fatal:'/public_html/repositories/git-test/.git'doesnotappeartobeagitrepositoryfatal:Theremoteendhungupunexpectedly有没有人遇到过这个问题,可能是什么原因? 最佳答案 您的路径可能不完整。也许您的完整路径

git .BACKUP .BASE .LOCAL .REMOTE 文件

我们正在这里为一个项目安装git,我正在和另一个同事一起玩。我一直在解决一些精心设计的merge冲突,但我最终得到了一堆我不想要的额外文件。它们是.BACKUP.BASE、.LOCAL和.REMOTE文件。根据这些名称,它们似乎来自解决我的merge。我得到的一些确切的文件名是:index.shtml.BACKUP.16908.shtmlindex.shtml.BASE.16908.shtmlindex.shtml.LOCAL.16908.shtmlindex.shtml.REMOTE.16908.shtml我还有另一组上面的文件,但以.21384结尾,假设来自另一次merge尝试是否

git - 在同一 svn-remote 中初始提取后添加 git 分支

我正在使用git-svn来处理svn存储库。我不想要整个repo协议(protocol),因为它包含很多遗产,其中包含二进制文件。我只跟踪一些目录。这是我当前的.git/config,它运行良好。[core]repositoryformatversion=0filemode=truebare=falselogallrefupdates=true[svn-remote"svn"]url=https://svn.example.com/repositoryfetch=trunk/Python:refs/remotes/trunkbranches=branches/{stage,prod,s

git - 权限被拒绝(公钥)/致命 : The remote end hung up unexpectedly?

所以我使用以下命令开始制作Jekyll站点,$gitclonehttps://github.com/plusjade/jekyll-bootstrap.gitUSERNAME.github.com$cdUSERNAME.github.com$gitremoteset-urlorigingit@github.com:USERNAME/USERNAME.github.com.git设置本地和github存储库后,我尝试将更改发送到github,$gitpushoriginmaster找到这个,Warning:PermanentlyaddedtheRSAhostkeyforIPaddress

git - 致命 : The remote end hung up unexpectedly while pushing to Git repository

我创建了一个名为DirectorySocket的新存储库,并从名为DirectorySocket的项目目录中执行了以下操作:$gitinit$gitadd.$gitremoteaddorigingit@github.com:neilghosh/DirectorySocket.git$gitcommit-m"Initialversion"$gitpushoriginmaster我得到了以下错误:ERROR:Permissiontoneilghosh/DirectorySocket.gitdeniedtoneilghosh/googly.fatal:Theremoteendhungupun

Git : fatal: Could not read from remote repository. 请确保您具有正确的访问权限并且存储库存在

我收到这个错误-D:\Projects\wamp\www\REPO[master]>gitpulloriginmasterWarning:Permanentlyadded'github.com,192.30.252.128'(RSA)tothelistofknownhosts.ERROR:Repositorynotfound.fatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.gitremote-v的输出D:\Projects\w

Git: "Error: refusing to create funny ref ' HEAD' remotely"用于初始推送

我正在尝试将我的Git存储库从Egit(EclipseGit)初始推送到GitHub。不幸的是,我收到以下错误:error:refusingtocreatefunnyref'HEAD'remotely我将源和目标ref都设置为“HEAD”这个错误信息是什么意思? 最佳答案 我通过选择master(refs/heads/master)作为源引用来解决这个问题。然后Egit也自动将目标ref设置为master。我想这个命令告诉git创建主分支,而选择HEAD要么尝试创建一个名为HEAD的分支,要么尝试推送到当前(不存在的)远程HEAD。

git - 不同 Remote 上的 checkout 分支

我有一个repo,除了origin之外还有另一个远程upstream。我可以执行gitcheckoutorigin/master,但是当我运行gitcheckoutupstream/master时,我得到:error:pathspec'upstream/master'didnotmatchanyfile(s)knowntogit.这也不起作用:$gitfetchupstreamFromhttps://github.com/getsentry/sentry*branchHEAD->FETCH_HEAD$gitco-basdf--trackupstream/masterfatal:Cann

git - 如何仅将一个目录级别设置为 `git ls-files`。

我正在使用msysgit(1.7.9),我正在寻找gitls-files命令的正确调用以仅显示当前的(跟踪的)文件和目录级别,或者从索引,或者如果更容易的话,从当前工作目录。本质上,它会提供一个与您在Github上看到的类似的目录列表。来自Windows,我不太熟悉进行通配(?)的正确方法。 最佳答案 我想你想要gitls-treeHEADsed来尝尝。ls-tree输出的第二个词是tree表示目录,blob表示文件,commit表示子模块,文件名是ascii后的所有内容标签。编辑:改编自@iegik'scomment并更好地适应问

git - stash Git 错误 "fatal: remote error: CAPTCHA required"

尝试使用以下命令从我的Stash项目中提取数据:$gitremoteaddoriginhttps://stash@stash.company.com/scm/~username/project.git$gitpullorigindevelop系统提示我输入密码,然后出现以下错误:YourStashaccounthasbeenmarkedasrequiringaCAPTCHAtobesolvedbeforeyoumayloginagain.Thisistypicallycausedbytoomanyattemptstologinwithanincorrectpassword.Thereq