博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[翻译] USING GIT IN XCODE [4] 在XCODE中使用GIT[4]
阅读量:5745 次
发布时间:2019-06-18

本文共 1689 字,大约阅读时间需要 5 分钟。

USING GIT IN XCODE

LOOKING AT HISTORY

Xcode provides a Versions editor, which has three different perspectives on the git history for a file.  To use the Versions editor, select the file in the Standard editor in Xcode, the switch to the Versions editor using the editor segmented control in the upper right hand corner of the Xcode window.

Xcode提供一个历史编辑器,用来比对不同提交版本中修改的文件的。选择一个文件,然后选择图示中的标记。

The three perspectives are Comparison, Blame, and Log, and can be selected using the segmented control in the lower right portion of the editor pane when the Versions editor is active.

这3个标签分别是比较,责任制标签(谁修改了什么代码),以及日志,可以通过segmented control来选择不同的功能。

The Comparison view will initially show changes in the working copy from the most recent commit.  Changes can be discarded by clicking on the number in the center column and selecting Discard Change from the menu.  The Comparison view can also compare any two arbitrary commits.  To do this, click the clock icon at the bottom of the center column.  Xcode will present a view of the commits that have taken place for the file.  Adjust the two white pointers to select the version to display in each window.  Xcode will display the commit information for each commit as you move the arrow past it.  Once selected, Xcode will highlight the code differences between the versions.

比较器可以显示当前项目中修改的文件与最近提交的文件的不同的地方。你可以把修改恢复到以前的状态当中。

If something in the code does not make sense or is not clear, it can be helpful to talk to the person who coded it.  Blame view can identify the author of each line of code by showing who made each change in the file, and corresponding commit information for each change.

如果某些代码看起来意义不明,去和提交代码的人交流会很有帮助。责任标签view就是为了标记哪一行是哪个人修改的代码的。

 

转载地址:http://eiozx.baihongyu.com/

你可能感兴趣的文章
lvm讲解,磁盘故障小案例
查看>>
大快网站:如何选择正确的hadoop版本
查看>>
经过这5大阶段,你离Java程序员就不远了!
查看>>
IntelliJ IDEA 连接数据库详细过程
查看>>
thymeleaf 学习笔记-基础篇
查看>>
PHP-X开发扩展
查看>>
android学习笔记——onSaveInstanceState的使用
查看>>
工作中如何做好技术积累
查看>>
怎么用sysLinux做U盘双PE+DOS??
查看>>
Spring Transactional
查看>>
shell脚本实例
查看>>
我的友情链接
查看>>
Windows Phone 7 隔离存储空间资源管理器
查看>>
Microsoft Excel 2000/2003修复工具
查看>>
apache安装报错undefined reference ssl
查看>>
关于爱情只有一句忠告
查看>>
CentOS 7下安装部署Oracle11g图文教程
查看>>
F#初学笔记06
查看>>
实战:将企业域名解析委派给企业DNS服务器
查看>>
在Lync 2013环境部署Office Web Apps
查看>>