解决:git使用git push 命令跳出remote: Permission to A denied to B的问题

开始git上传项目,不料,在git push这一步骤发生了错误?

remote: Permission to qwe2193066947/firstRepository.git denied to murenziwei.

fatal: unable to access ‘https://github.com/qwe2193066947/firstRepository.git/‘: The requested URL returned error: 403

纳尼!怎么回事?!没找到文件?

这错误翻译成中文的大概意思:用户murenziwei没有权限访问用户qwe2193066947的存储库firstRepository。

也就是说,git环境终端里,我登入的是murenziwei账号,所以我就应该换成qwe2193066947账号才能解决问题。

于是,立刻执行登录github账号的有关git命令行

git config --global user.name xxx
git config --global user.email [email protected]

然并卵,连输入密码的步骤都没看见,就能算切换账号成功?显然,此番失败后,只能通过网上资料找到另一个方法解决。

由于我用的是华硕台式,操作可能有不同的地方,但原理都差不多。

控制面板-->用户

编辑账号完成后,回到终端,再次输入git push ,不出意外的话,自家人自然能打自家人,问题也该解决了

原文地址:https://www.cnblogs.com/murenziwei/p/9621599.html

时间: 2024-07-31 14:23:58

解决:git使用git push 命令跳出remote: Permission to A denied to B的问题的相关文章

使用tortoisegit工具git地址中带号码密码的拉取,以及使用这种方式后中途重置密码报git remote: HTTP Basic: Access denied 错误解决办法

1. 在拉取git项目时可以在地址中直接指定号码密码如下就可以直接拉取下来 https://username:[email protected] 需要注意,因为在解析地址时是以@符号作为地址信息和用户信息的分隔,所以再用户名和密码中如果有@符号,需要转义为%40 才能正常拉取和推送 2.在使用这种方式拉取的项目后,如果中途有重置过git的账号密码,在进行pull或者push操作时,会报git remote: HTTP Basic: Access denied错误,网上查到到的命令行清除账号密码信

git push失败the remote end hung up unexpectedly

Git Push是老是失败,提示: fatal: the remote end hung up unexpectedlygit did not exit cleanly (exit code 1) 原来是文件Push文件太大引起.解决方法:windows:在 .git/config 文件中加入[http]postBuffer = 524288000 linux:git config http.postBuffer 52428800 git push失败the remote end hung up

Git学习 --> 个人常用命令add,commit以及push

Git命令行配置1 安装Github2 安装msysgit3 要配置用户名和油箱  git config --global user.name <用户名> 我的命令就是:git config --global user.name mchdbagh  git config --global user.email <油箱> 我的命令就是:git config --global mc[email protected]4 验证有没有连接上remote远程服务器ssh -T [email p

git push命令每次都要输入用户名和密码的问题处理

git push命令每次都要输入用户名和密码.原因是在添加远程库的时候使用了https的方式.所以每次都要用https的方式push到远程库. 这是github里的界面截图: 查看使用的传输协议: git remote -v [email protected]:~/MyGithub/DailyBlog$ git remote -v origin https://github.com/toyijiu/DailyBlog.git (fetch) origin https://github.com/t

git push命令

git push命令用于将本地分支的更新,推送到远程主机.它的格式与git pull命令相似. $ git push <远程主机名> <本地分支名>:<远程分支名> 使用语法 git push [--all | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=<git-receive-pack>] [--repo=<repository>

Git的add、commit、push命令

简单的代码提交流程 git status 查看工作区代码相对于暂存区的差别 git add . 将当前目录下修改的所有代码从工作区添加到暂存区 . 代表当前目录 git commit -m "xxx" 将缓存区内容添加到本地仓库, xxx是对此次修改的描述 git pull --rebase 拉取远程仓库代码并合并(如果有冲突需要进行手动处理)也可以直接使用 git pull 拉取 git pull = git fetch + git merge git pull --rebase =

解决Jenkins上git出现的“ERROR: Error fetching remote repo &#39;origin&#39;”问题

今天对清掉了Jenkins中项目的工作空间,结果构建出现“ERROR: Error fetching remote repo 'origin'”问题:网上各种找也没找到解决这个问题的方法. 后来看错误之前是“> git.exe config --local --remove-section credential # timeout=10”,不会是跟密码有关吧! 于是将url改成http://用户名:密码@ip/的格式,git配置改成不使用密码,结果OK了. 解决Jenkins上git出现的"

【git】Git 提示fatal: remote origin already exists 错误解决办法

今天使用git 添加远程github仓库的时候提示错误:fatal: remote origin already exists. 最后找到解决办法如下: 1.先删除远程 Git 仓库 $ git remote rm origin 2.再添加远程 Git 仓库 $ git remote add origin https://github.com/qiao-zhi/small.git 3.如果执行 git remote rm origin 报错的话,我们可以手动修改gitconfig文件的内容 $

02_创建Git仓库,克隆仓库,git add,git commit,git push,git pull,同行冲突,不同行冲突的结局方案,git mergetool的使用

1 创建Git资源库,残酷目录信息 创建git资源库的命令: git init –bare 仓库名称 (其中-bare表示的意思是空的库的意思) 进入E:\software\repository\git\itheima28,截图如下: hooks:提交一些脚本文件 info:存放一些个人信息,配置信息 objects:所有数据存放位置 refs:git指针信息,记录了修改了什么等的信息 config:核心的配置信息 description:描述信息 HEAD:存放的分支信息. 2 使用上面创建的