草庐IT

remote-ssh

全部标签

通过ssh git clone

我有一个项目,我在上面创建了一个git存储库:$cdmyproject$gitinit$gitadd.$gitcommit我想在另一台机器上创建一个裸克隆:$cd..$gitclone--baremyprojectssh://user@server:/GitRepos/myproject.git我执行了克隆但没有打印任何答案。我登录到服务器机器并试图查看文件是如何存储的。/GitRepos路径是空的,所以我决定再次克隆:$gitclone--baremyprojectssh://user@server:/GitRepos/myproject.git这次的答案是:fatal:destin

git pull 错误 :error: remote ref is at but expected

完整消息:error:Refrefs/remotes/origin/userisat3636498c2ea7735fdcedc9af5ab3c8689e6abe77butexpecteda21359c6cc2097c85775cde6a40105f4bd7100ecFromgithub.com:{githubprojecturl}!a21359c..6273ffcuser->origin/user(unabletoupdatelocalref) 最佳答案 如果您在不区分大小写的文件系统(Windows或OSX)下运行git,如果有两

git - 登录时启动 ssh-agent

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。这个问题似乎与helpcenter中定义的范围内的编程无关。.关闭去年。Improvethisquestion我有一个站点作为使用SSH别名从Bitbucket.compull的远程Git存储库。我可以在我的服务器上手动启动ssh-agent,但我每次通过SSH登录时都必须这样做。我手动启动ssh-agent:evalssh-agent$SHELL然后我添加代理:ssh-add~/.ssh/bitbucket_id然后当我这样做时它会出现:ssh-add-l我准备好了。有什么方法可以使这个过程自动化,

Git,致命的 : The remote end hung up unexpectedly

当我试图运行时gitpushoriginmaster--force刚好Countingobjects:2649,done.Deltacompressionusesupto2threads.Compressingobjects:100%(1280/1280),done.error:RPCfailed;result=22,HTTPcode=413|116KiB/sfatal:TheremoteendhungupunexpectedlyWritingobjects:100%(2504/2504),449.61MiB|4.19MiB/s,done.Total2504(delta1309),re

git - 如何在不添加单独 Remote 的情况下使我的 fork 保持同步?

假设GitHub上有一个存储库someone/foobar,我将其fork到me/foobar。我如何从父存储库中pull新提交直接到我的复刻,而不必addaseparateremote并记得定期从那里pull?目标是:gitpull从父仓库中获取gitpush将所有内容发送到我的fork 最佳答案 打开fork的Git存储库me/foobar。点击比较:您将收到通知:Thereisn'tanythingtocompare.someone:masterisuptodatewithallcommitsfromme:master.Try

git - 使用 Git GUI 或 ssh-keygen 的 SSH 私钥权限太开放

最近一直无法clone或者push到github,正在寻找根本原因。这是在windows上我有cygwin+git以及msysgit。Msysgit使用以下选项安装:OpenSSH在Windows命令提示符下使用Git这给了我4个环境来尝试使用git:Windows命令提示符动力外壳Git狂欢赛格文不知何故,当我尝试使用msysgit、cmd.exe或Powershell克隆存储库时,我遇到了以下错误:>InitializedemptyGitrepositoryin>C:/sandbox/SomeProject/.git/>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

带有 IntelliJ IDEA 的 git : Could not read from remote repository

几个星期以来,我无法从远程存储库中pull或推送到远程存储库。我认为升级到IntelliJIDEA14时会发生这种情况,但我也可以使用IDEA13.1.5重现该问题。工具提示说“获取失败致命:无法从远程存储库读取。”版本控制选项卡中的异常显示为14:02:37.737:cdC:\dev\project14:02:37.737:git-ccore.quotepath=falsefetchorigin--progress--prunejava.io.IOException:PaddinginRSApublickey!atcom.trilead.ssh2.signature.RSASHA1V

git - 为什么 GitHub 推荐 HTTPS 而不是 SSH?

在GitHub站点上有一个链接...https://help.github.com/articles/generating-ssh-keys...它说...IfyouhavedecidednottousetherecommendedHTTPSmethod,wecanuseSSHkeystoestablishasecureconnectionbetweenyourcomputerandGitHub.ThestepsbelowwillwalkyouthroughgeneratinganSSHkeyandthenaddingthepublickeytoyourGitHubaccount.为什

git - SSH key - 仍然要求输入密码和密码

我有点“忍受”Github在克隆存储库时总是询问我的用户名和密码。我想绕过这一步,因为它是我工作流程中的一个烦恼。我尝试使用本指南设置SSHkey(我成功地做到了)。https://help.github.com/articles/generating-ssh-keys我成功了。我的问题是在克隆存储库(使用SSH)时仍然要求我提供我的github密码和密码。我的理解是,设置此SSHkey后,我将不再需要这样做。我有点不确定该问什么,所以我就说一下我的目标吧。IwanttobeabletoclonerepositorieswithouthavingtoputinmyGithubinfor

Git - 将代码推送到两个 Remote

这个问题在这里已经有了答案:HowcanIpull/pushfrommultipleremotelocations?(17个答案)关闭7年前。我有两个远程git存储库。来源和github我将我的分支devel推送到两个存储库。gitpush-uorigindevelgitpush-ugithubdevel但是,当我这样做的时候。gitpush它只会被推送到github。无论如何我可以设置我的两个Remote,这样我就可以用一个命令将更改推送到两个存储库吗?