致命:无配置的推送目标 [英] fatal: No configured push destination
本文介绍了致命:无配置的推送目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请查看以下屏幕详细信息-git remote -v命令显示我已经添加了test_vishwas,但是当我给出推"命令时,它给出了错误.有人可以帮忙吗?
Please see following screen details - git remote -v command is showing that I have test_vishwas added but when I am giving Push command it is giving error. Anybody can help ?
C:\Users\vishwas_gupta03\Documents\GitHub\test_Vishwas [master]> git remote -v
github https://github.com/vishwasjione/test_Vishwas.git (fetch)
github https://github.com/vishwasjione/test_Vishwas.git (push)
origin
C:\Users\vishwas_gupta03\Documents\GitHub\test_Vishwas [master]> git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository us
ing
git remote add <name> <url>
and then push using the remote name
git push <name>
C:\Users\vishwas_gupta03\Documents\GitHub\test_Vishwas [master]>
推荐答案
尝试一下:
git push -u github master
这会将您的本地master
分支设置为跟踪github
遥控器上的master
分支.
This will set your local master
branch to track the master
branch on the github
remote.
下次按下该分支时,应该可以使用较短的命令git push
.
Next time you push this branch, you should be able to use the shorter command git push
.
这篇关于致命:无配置的推送目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文