[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。

[备忘]Git里,Tracking Branches和Remote Tracking Branches的区别

上一篇:[备忘]jvm几种GC方式的意思
下一篇:[备忘]$.ajax,返回status为200 却调用了error方法

添加日期:2016/8/16 11:47:56 快速返回   返回列表 阅读1929次
原文在此,有图解。
http://www.gitguys.com/topics/tracking-branches-and-remote-tracking-branches/
另一文:
http://gitready.com/beginner/2009/03/09/remote-tracking-branches.html

大概意思就是:
--------------------------------------------------
Remote Tracking Branches是和远程做关联的分支,本地用户只读,不能更改。
它从远程获取内容,fetch的时候,实际就是更新到Remote Tracking Branches分支里,
然后你merge的时候,就把它和你的master、dev之类的分支合并了。
pull的话,就是fetch+merge两步合一步执行。

Tracking Branches其实就是指你的master、dev等分支。

原文总结在此:
------------------------------------------------------
Below is a high-level summary of tracking branches and remote tracking branches. The rest of this page gives examples of tracking and remote tracking branches in action.
---------------------------
Tracking Branches – the high level summary:
---------------------------
(1)Tracking Branches get their contents from the git clone, git pull and git merge commands (git fetch updates only the remote tracking branch).
(2)Tracking branches can be modified by users.
(3)After the user does a git commit in the local tracking branch, users can then use git push to publish changes from their tracking branch to the remote repository and remote tracking branches.

---------------------------
Remote Tracking Branches – the high level summary:
---------------------------
(1)Remote Tracking Branches get their contents from the git clone, git pull and git fetch commands (git merge updates only the tracking branch).
(2)Remote Tracking Branches should not be modified by users (don’t set your git branch to a remote tracking branch via git checkout and then try to modify the remote tracking branch).
(3)Remote Tracking Branches get their contents from the remote repository.
 

评论 COMMENTS
没有评论 No Comments.

添加评论 Add new comment.
昵称 Name:
评论内容 Comment:
验证码(不区分大小写)
Validation Code:
(not case sensitive)
看不清?点这里换一张!(Change it here!)
 
评论由管理员查看后才能显示。the comment will be showed after it is checked by admin.
CopyRight © 心缘地方 2005-2999. All Rights Reserved