我注意到,在Git中的最新版本,默认现在是弹出一个"混帐凭据管理器的Windows"对话框中,而不是在bash的提示我要我的密码提示每次的.我真的很讨厌这种行为.我怎样才能禁用它并返回每次在bash shell输入密码?
顺便说一句,我不希望git 以任何方式缓存我的凭据,无论是通过Windows凭据还是某些内部守护进程.我想禁用所有凭据缓存.
我有SourceTree和本地工作副本.所有操作都运行良好,我可以通过SourceTree简单地获取,推送,拉取等.我只需要在SourceTree中进行强制推送.
我打开终端制作git push -f
remote: Repository not found.
fatal: repository 'https://github.com/MyRepo/project.git/' not found
Run Code Online (Sandbox Code Playgroud)
我不确定会出现什么问题.
这是我的存储库 https://github.com/kiotie32/artbit-text.git 当我这样做时
$ git push -u origin master
remote: Repository not found.
fatal: repository 'https://github.com/kiotie32/arbit-text.git/' not found
Run Code Online (Sandbox Code Playgroud)
我在 Windows 10 机器上。我已经配置了与这台笔记本电脑一起使用的 ssh 密钥。我做了一个 ls 我可以看到
MINGW64 ~/.ssh
$ ls
kiotie32_rsa kiotie32_rsa.pub known_hosts
Run Code Online (Sandbox Code Playgroud)
我阅读了此线程上给出的所有答案, 我更改了存储在 Windows 凭据管理器中的密码。
我检查git remote -v | head -n1 | awk '{print $2}' | sed 's/.*\///' | sed 's/\.git//'
我得到以下输出arbit-text
我更改了存储在 Windows 凭据管理器中的密码,可能存储了旧密码。
我没有收到任何询问用户名密码的弹出窗口。(配置了 ssh 密钥,但不确定它是否在此 Windows 10 环境中工作,我将密钥存储在 git bash 中的 .ssh 中)现在我这样做了
$ git remote add origin https://github.com/kiotie32/arbit-text.git
fatal: remote …Run Code Online (Sandbox Code Playgroud) 在属于组织(而不是个人)的回购中,协作者是"团队"的成员,团队可以拥有三种不同的权限:
我可以在这样的repos上看到一个协作者列表:
GET /repos/:owner/:repo/collaborators
Run Code Online (Sandbox Code Playgroud)
...但它并没有告诉我协作者拥有什么类型的权限.
在这个特殊情况下,我是合作者之一; 我不拥有存储库.
有没有办法以编程方式确定我的协作者权限类型?
我在GitHub上创建了一个名为"messages"的存储库和一个名称相同的本地存储库.我试图将文件从我的本地仓库推送到远程,但得到此错误:
错误:未找到存储库.
致命:远程端意外挂断.
我认为这是一个身份验证问题.当我跑的时候
ssh -T git@github.com
Run Code Online (Sandbox Code Playgroud)
我确实收到一条消息,表明我的密钥不起作用.所以我将〜/ .ssh/github_rsa.pub添加到我在GitHub帐户中的SSH密钥上(删除了那里已存在的密钥)并再次运行命令.这次我收到一条消息说 -
嗨septerr!您已成功通过身份验证,但GitHub不提供shell访问权限.
从我读到的这似乎是预期的消息.所以,我再次尝试推动.但收到同样的错误.找不到存储库.
Swapnas-MacBook-Pro:messages sony$ git remote -v show
origin git@github.com:seterr/messages.git (fetch)
origin git@github.com:seterr/messages.git (push)
Swapnas-MacBook-Pro:messages sony$ git push -u origin master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
当我在GitHub上查看我的回购时,我看到:
现有的Git Repo?
cd existing_git_repo
git remote add origin git@github.com:septerr/messages.git
git push -u origin master
可能有什么不对?
我想知道是否有人遇到过这个问题。我创建了一个个人访问令牌下面这,也给了访问令牌完全回购访问。
我可以通过以下方式克隆 repo:
git clone https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git
但我无法推送它给了我错误:
remote: Repository not found.
atal: repository 'https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git/' not found
Run Code Online (Sandbox Code Playgroud)
跑步git remote -v给出:
origin https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git (fetch)
origin https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git (push)
Run Code Online (Sandbox Code Playgroud)
如果您需要更多信息,请告诉我。
每当我尝试github从命令行将更改推送到远程存储库时,我收到以下错误:
> git push
remote: Repository not found.
fatal: repository 'https://github.com/MyOrg/MyRepo.git' not found
Run Code Online (Sandbox Code Playgroud)
(我已经取代了org和repo名称,但它们肯定是正确的名称).
我已经检查过我对存储库的写访问权限.我能够通过github网站创建分支并写入文件,并在本地将这些更改撤回.
我使用Git Credential Manager for Windows(GCM)使用github进行身份验证,我在gitconfig中有以下内容:
[credential]
helper = manager
Run Code Online (Sandbox Code Playgroud)
我正在运行Windows 10,git版本2.10.2.windows.1.