相关疑难解决方法(0)

如何使用其他用户名推送到GitHub?

朋友和我一起分享我的电脑.我已经在Windows 7上使用git bash shell推送到GitHub.现在我们在该计算机上的一个不同的项目,我需要她推送到她的帐户.但它一直试图使用我的用户名并说我无法访问她的存储库:

$ git push her_github_repository our_branch
ERROR: Permission to her_username/repository.git denied to my_username.
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

git github

117
推荐指数
16
解决办法
17万
查看次数

禁用git credential-osxkeychain

我需要禁用OS X的凭证帮助程序: git credential-osxkeychain

它在全局配置文件和本地配置文件中都被禁用,实际上它从未启用过.它仍然记住我的github登录详细信息.
我在笔记本电脑上,所以我不希望自动无密码访问我的回购.
使用ssh密钥.这是一台新计算机,整个系统设置仍在进行中.
现在我使用了httpsrepo refs,凭证助手一直在努力.

这些是我的conf文件:


git config --edit =>

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = false
[remote "origin"]
    url = https://github.com/user/repo.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[branch "develop"]
    remote = origin
    merge = refs/heads/develop
[branch "deploy"]
    remote = origin
    merge = refs/heads/deploy
Run Code Online (Sandbox Code Playgroud)

git config --global --edit =>

[user]
    email = **************** …
Run Code Online (Sandbox Code Playgroud)

git github

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

Github远程权限被拒绝

我正在尝试在github上传我的repo并完成所有步骤:

git push -u origin master

那时它给了我以下错误:

remote:允许samrao2/manager-4.git拒绝samrao1.

致命:无法访问' https://github.com/samrao2/manager-4.git/ ':请求的URL返回错误:403

我认为问题是我在"samrao1"之前登录了另一个Git帐户,现在我正在尝试推送到"samrao2".

有人可以帮助我重置到我可以成功推送到"samrao2"的地方.我假设我第一次尝试这样做时会提示我输入密码.

git github

23
推荐指数
9
解决办法
3万
查看次数

标签 统计

git ×3

github ×3