标签: github

brew 更新超时

这真让我抓狂。我无法再更新我的自制软件安装。当我运行时brew update,它什么也不做并且超时。

我什至尝试重新安装它,但是当我使用默认安装程序时遇到了同样的问题。我最终使用了“随处解压”(https://github.com/mxcl/homebrew/wiki/Installation)选项,效果很好。但我仍然无法更新自制软件。

? brew update
Initialized empty Git repository in /usr/local/homebrew/.git/
error: Failed connect to github.com:3128; Operation timed out while accessing https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Error: Failure while executing: git fetch origin
Run Code Online (Sandbox Code Playgroud)

在详细模式下运行并没有多大帮助:

? brew update -v
git init 
Initialized empty Git repository in /usr/local/homebrew/.git/
git config core.autocrlf false 
git remote add origin https://github.com/mxcl/homebrew.git 
git fetch origin 
error: Failed connect to github.com:3128; Operation timed out while accessing https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Error: Failure …
Run Code Online (Sandbox Code Playgroud)

git github homebrew macos

5
推荐指数
1
解决办法
4568
查看次数

当我从命令行推送时,为什么 Github 将 Ubuntu 计算机的名称列为作者,而不是我的 Github 帐户名称?

当我git push从 Ubuntu 机器上的终端(计算机名称为 )时,Bot它会要求提供 Github 凭据,我会提供这些凭据。我提供的用户名是我自己的,而不是Bot。然而,当我访问 github.com 时,我发现编写我推送的代码的功劳已经转移到了Bot我身上。如何让它将更改归因于我的 Github 用户名?我可以追溯地告诉 Github 所有这些 Bot 更改实际上都是我推动的吗?

terminal git github ubuntu

5
推荐指数
1
解决办法
2404
查看次数

powerline字体的用法是什么?

今天我在 github 中偶然发现了这个存储库

Lokaltog / 电力线字体

没有太多与这些字体的作用/修补相关的信息。我用谷歌搜索它但什么也没找到。有谁知道它是什么?

fonts github

5
推荐指数
1
解决办法
4947
查看次数

如何使用 SSH 密钥在 GitHub 上作为协作者提交?

我是一个私人 Github 存储库(由其他人拥有)的合作者,虽然我在我自己的 GitHub 帐户中添加了一个 SSH 密钥,它允许我在访问我自己的存储库时进行身份验证,但它总是要求我输入密码尝试访问我只是合作者的存储库。

您知道为什么它不使用我的 SSH 密钥对我进行身份验证吗?

我试图将我的密钥作为“部署密钥”添加到共享存储库本身,但 GitHub 总是拒绝我的提交,并显示错误消息“密钥已在使用中。”。

我的遥控器如下所示:

$ git remote -v
origin  https://example-user@github.com/example-owner/example-project.git (fetch)
origin  https://example-user@github.com/example-owner/example-project.git (push)
Run Code Online (Sandbox Code Playgroud)

github ssh-keys

5
推荐指数
1
解决办法
3319
查看次数

如何通过终端删除 Github 中的旧提交?

我有一个存储库。

如何通过终端删除我的旧提交?我的 SSH 密钥已上传。

(我用的是github pages,这就是为什么版本跟踪并不重要,不想浪费Github的存储空间)

github

5
推荐指数
3
解决办法
4万
查看次数

在 Github 上查找首先添加特定代码行的提交

我想找到将以下代码行添加到solver.cpp的提交,用于托管在Github 上的深度学习库caffe。我不是贡献者或有任何特殊权限。我怎么做?

template <typename Dtype>
void SGDSolver<Dtype>::ClipGradients() {
  const Dtype clip_gradients = this->param_.clip_gradients();
  if (clip_gradients < 0) { return; }
  const vector<shared_ptr<Blob<Dtype> > >& net_params = this->net_->params();
  Dtype sumsq_diff = 0;
  for (int i = 0; i < net_params.size(); ++i) {
    if (this->net_->param_owners()[i] < 0) {
      sumsq_diff += net_params[i]->sumsq_diff();
    }
  }
  const Dtype l2norm_diff = std::sqrt(sumsq_diff);
  if (l2norm_diff > clip_gradients) {
    Dtype scale_factor = clip_gradients / l2norm_diff;
    LOG(INFO) << "Gradient clipping: scaling down gradients (L2 norm …
Run Code Online (Sandbox Code Playgroud)

git github

5
推荐指数
2
解决办法
4862
查看次数

Github 说 Pages 不应该用于发送密码或信用卡信息。为什么?

他们说:

GitHub Pages 站点不应用于发送密码或信用卡号等敏感交易。

这一点,即使他们正式支持 HTTPS。

请参阅此场景:我在 Github 上托管静态网站,并启用了 HTTPS。我有一台在云中运行的服务器,我在静态网站上收集/显示的所有非静态信息都通过 HTTPS 存储在该服务器上/从该服务器获取。

如果静态网站支持 HTTPS,并且我与云服务器的所有连接也是 HTTPS,那么我应该可以使用 Github Pages 进行敏感交易,例如发送密码或信用卡号,对吗?

我很好奇 Github 说你“不应该这样做”的原因是什么,尽管我觉得在使用 GitHub 页面时有一种方法可以确保安全。

hosting https github

5
推荐指数
1
解决办法
174
查看次数

如果不进行变基,如何将本地存储库推送到使用许可证文件初始化的新远程 github 存储库?

我有一个包含一些提交的本地存储库。由于我想将其公开提供给其他人,因此我需要将其推送到 Github 上新创建的远程存储库。新创建的远程仓库使用许可证文件进行初始化(因为本地仓库没有许可证文件)。

由于在远程存储库中添加了文件,推送git push -u origin main(我的本地分支也使用main而不是作为master主分支)会产生错误。license

C:\test>git push -u origin main
To https://github.com/pstricks-fans/test.git
 ! [rejected]        main -> main (fetch first)
error: failed to push some refs to 'https://github.com/pstricks-fans/test.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') …
Run Code Online (Sandbox Code Playgroud)

git github

5
推荐指数
1
解决办法
1019
查看次数

什么是 SSH 密钥?

我注册了 github 并注意到看起来很有趣的 ssh 密钥选项。我最初期待像 ssl 密钥(名称、公司名称等)之类的东西。通过它后,我注意到我只输入了一个密码,它始终是 myuser@comp-name(这是 Windows)。为什么?我认为这是一个用户/密码 ID,出于隐私原因,我可以为不同的目的创建单独的密钥。

现在我看到我需要使用一个来创建存储库。在查看选项时,我还看到了有关“私钥文件”的内容。究竟什么是 SSH 密钥以及如何在不创建单独的 Windows 登录的情况下创建单独的用户。

ssh github msysgit

4
推荐指数
1
解决办法
730
查看次数

Github:为什么我每次提交都会出现两次?

每当我提交某些内容时,它都会在 GitHub 上显示一条提交消息,如下所示:

示例提交消息

我正在使用 Intellij-IDEA(如果相关的话)。

问题:

  • 为什么我的名字“Bernhard”出现两次?请注意,提交消息的开头还有两个头像。
  • 实际上我在 GitHub 上有一张图片,通常会自动用作头像。为什么这里不使用它(两个化身都没有)?

我和我的团队不知道是什么导致了这种情况。我应该尝试/检查什么建议?

git github intellij-idea

4
推荐指数
1
解决办法
4076
查看次数

标签 统计

github ×10

git ×5

fonts ×1

homebrew ×1

hosting ×1

https ×1

intellij-idea ×1

macos ×1

msysgit ×1

ssh ×1

ssh-keys ×1

terminal ×1

ubuntu ×1