'dev' does not appear to be a git repository

心不动则不痛 提交于 2021-02-05 09:35:41

问题


I am new to git and I saw some people use this blow command:

git push -f dev HEAD:master

and when I try it this is the error I see:

'dev' does not appear to be a git repository

how can I know what dev is? is there a command to show the URL of it?


回答1:


dev is not a git keyword. Using git push dev you assume that dev is a git remote known by your git repository.

By default you get only one remote named origin. A proper command will be git push origin

To list all remotes, use git remote -v



来源:https://stackoverflow.com/questions/39556027/dev-does-not-appear-to-be-a-git-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!