简体   繁体   English

为什么我无法更新我的存储库的主分支 [暂停]

[英]Why I can't update my master branch of my repository [on hold]


Disclaimer:免责声明:

This repo is in private but I have added a collaborator in it so both of us work in this specific project这个 repo 是私人的,但我在其中添加了一个合作者,所以我们都在这个特定的项目中工作

I have this issue like if I issue---我有这个问题,就像我发出——

> git add.

the files are still untracked..文件仍然未跟踪..

what could be the possible error可能的错误是什么

when I do like git pull当我喜欢git pull


remote: Repository not found.远程:未找到存储库。

fatal: repository ' https://github.com/xxxxxx/xxxx.git ' not found致命:未找到存储库' https://github.com/xxxxxx/xxxx.git '

Do it:这样做:

Remove the remote origin删除远程源

git remote rm origin

Re-add the origin but with your username and password with writing privileges on this private repo重新添加来源,但使用您的用户名和密码,并在此私人仓库上具有写入权限

git remote add origin  https://USERNAME:PASSWORD@github.com/username/reponame.git

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何用我从本地存储库的主分支派生的原始存储库更新派克的本地分支? - How to update my local branch of fork with original repository from which i forked the master branch of local repository? 我的分支领先于大师……但我无法推动大师 - My branch is ahead of master…but I can't push to master 我无法将其推送到我的存储库,它说您的分支是“上游/主服务器”的最新信息,但我对文件进行了更改 - I can't push to my repository it says Your branch is up-to-date with 'upstream/master' but I have made changes to my files Git:我忘记创建分支 master,如果我的存储库已经有另一个分支,我该如何创建它? - Git: i forgot create branch master, how i can create it if my repository already has another branch? 我可以使git仓库的gh-pages分支成为Master分支的镜像吗? - Can I make the gh-pages branch of my git repository a mirror of the Master branch? 即使master只包含一个空的README,为什么我不能将git dev分支合并到master? - Why can't I merge my git dev branch to master even though master only contains an empty README? 为什么不能推送到我的存储库? - Why can't I push to my repository? 从分支切换到母版时,为什么项目中的文件没有更改? - Why aren't my files in my project changing when I switch from a branch to master? 为什么我的远程 master 分支中的更改没有被拉入我的本地 master 分支? - Why aren't changes in my remote master branch being pulled into my local master branch? 如何使用master分支更新分支,并覆盖对分支所做的任何更改? - How do I update my branch with master branch and override any changes I made on my branch?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM