有什么区别“起源大师” vs“origin / master” [英] What's the difference "origin master" vs "origin/master"

查看:80
本文介绍了有什么区别“起源大师” vs“origin / master”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有时会看到



在运行git命令时,空格和斜杠之间有什么区别? > git push origin master (这是一个空格)



以及其他时间我看到



git rebase origin / master (使用斜线)



什么是这个约定的区别?是斜线符号访问本地缓存副本,而空间版本实际上是远程回购(github)?

>这不是一个惯例。前者是不同位置的两个单独的参数,其含义与 git push 不同,后者是标识远程跟踪分支原点的单个参数/ master


What is the difference between a space and a slash when running git commands?

I sometimes see

git push origin master (which is a space)

and other times I see

git rebase origin/master (which uses a slash)

What is the difference in this convention? Is it that the slash notation accesses a local cached copy whereas the space version actually reaches out to the remote repo (github) ?

解决方案

This is not a "convention". The former is two separate arguments in different positions with different meanings to git push, and the latter is a single argument which identifies the remote-tracking branch origin/master.

这篇关于有什么区别“起源大师” vs“origin / master”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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