无法通过GitHub Desktop将本地项目推送到远程仓库求助
本地代码推送到GitHub遇到的问题
我本地代码和GitHub仓库不同步,想要把本地代码推送到GitHub,结果参考了一篇Bitbucket项目推送教程,在GitHub Desktop里通过「Repository → Open in Command Prompt」打开命令提示符,执行了以下命令:
cd D:\Award Tracking Application - restart 20240407\Award Tracking Application D: git init git add . git config --global user.email "xxxxxxxxxx@xxxxxl.com" git config --global user.name "xxxxxxxxxxxr" git commit -m "Add files to git before the Bitbucket push." git remote add source https://Glyndwr@bitbucket.org/ATA_Team/gmat.git git push -u -f bitbucket master
推送后返回错误:
fatal: 'bitbucket' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
之后我回到GitHub Desktop尝试推送(对应附件2:Publish按钮界面截图),却收到必须先执行fetch操作的错误提示(对应附件3:Fetch操作提示截图)。点击「Fetch」后重试Publish,还是出现相同的错误提示。检查仓库后发现,需要上传的本地文件并没有出现在仓库里(对应附件1:GitHub仓库界面截图)。
内容的提问来源于stack exchange,提问作者Glyn
相关产品推荐
相关产品推荐

