小编Bra*_*nor的帖子

ssh github 有效,但 git push 无效。

我从未遇到过 ssh 工作和 git 不以这种方式工作的情况。不知道如何排除故障。

ssh 似乎工作(-T防止第一行):

iam@heeere:/e/.ssh$ ssh github
PTY allocation request failed on channel 0
Hi bradyt! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
Run Code Online (Sandbox Code Playgroud)

git push 似乎不起作用

iam@heeere:/e/basic-computing-notes$ git push
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

配置

我的 git 配置是

iam@heeere:/e/basic-computing-notes$ git config -l
user.email=algebrat@uw.edu
user.name=Brady Trainor
push.default=simple
alias.ac=!git add --all && …
Run Code Online (Sandbox Code Playgroud)

git ssh github

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

我可以在`vim -u NONE`之后启用Netrw吗?

在用Vim加载Vim之后可以加载netrw vim -u NONE吗?

我考虑过诸如

:set nocp
:set filetype on
:set filetype plugin on
:let g:loaded_netrw=1
:let g:loaded_netrwPlugin=1
:h netrw-start
Run Code Online (Sandbox Code Playgroud)

我意识到我可以制作一些~/.minimal-vimrc-netrw,但是想知道是否有一种方法可以“手动”启用。

vim

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

标签 统计

git ×1

github ×1

ssh ×1

vim ×1