'git push origin master'中'origin'的含义是什么 [英] What's the meaning of 'origin' in 'git push origin master'

查看:638
本文介绍了'git push origin master'中'origin'的含义是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行时:

  git push origin master 

...在这种情况下 origin 的含义是什么?

解决方案

origin 是您从中克隆的远程git存储库的默认名称。在源文件中查看 .git / refs / remotes / origin / * .git / config git如何知道它。


When I run:

git push origin master

...what is the meaning of origin in this context?

解决方案

origin is the default name of the remote git repository you cloned from. Have a look at .git/refs/remotes/origin/* and .git/config within your sources to see how git knows about it.

这篇关于'git push origin master'中'origin'的含义是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆