勾选Create git respository的作用

时间:2023-03-09 08:25:24
勾选Create git respository的作用

在Xcode中创建项目时会弹出Source Control选项,勾选Create git repository选项可以帮助我们对照以前项目中代码中修改的部分,为开发提供方便。勾选Create git respository的作用

在项目完成到一定程度时,点击屏幕上方Source Control选项,然后点击commit选项,会弹出一个窗口勾选Create git respository的作用

在Enter commit message here中填写注释

在修改代码之后,想要与以前的代码对照时点击窗口右上角按钮

勾选Create git respository的作用

此时窗口分为两栏,左边是现在的代码,右边是以前代码,窗口中会对应改变的地方显示出来,而且可以点击深灰色不分恢复到代码修改之前

勾选Create git respository的作用