Loading README.md +3 −1 Changes for README.md: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -14,4 +14,6 @@ BugChess是在椰树集团精神下开创的一个鲜榨项目,是一次探索 (如果已经有Configuration了就不用管) 3. 点击绿色播放键运行,跑起来就OK 远程协作简介戳这里[VCS.md](docs/VCS.md) No newline at end of file 远程协作简介戳这里[VCS.md](docs/VCS/VCS.md) test分支可以拿来练习VCS操作 No newline at end of file docs/VCS.md→docs/VCS/VCS.md +43 −7 Changes for docs/VCS/VCS.md: 43 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ 先打开左下角的git标签页 > Log标签页 ## 基本概念   workspace,目前的工作环境,也就是你电脑上这个项目所在的真实文件夹 Loading Loading @@ -51,7 +51,7 @@ IDEA好像没有add。。。。。 重新放这张图,记住这张图   push, fetch, 还有Update (= pull = fetch + checkout), 在Log标签页左侧各个分支那里右键选项里面 Loading Loading @@ -108,7 +108,7 @@ merge就是IDEA把每个文件的文本片段差别在哪里都给你弹窗展 有些情况下,比较简单的冲突,或者没有冲突只是多了几个文件的差别那样的话,merge是可以一键完成的 ### 移动标签 ### 移动HEAD标签 移动HEAD,也就是workspace的内容,到其他节点上,用checkout,线路图找节点右键checkout, Loading @@ -118,14 +118,50 @@ merge就是IDEA把每个文件的文本片段差别在哪里都给你弹窗展 这是比较危险的状态......我也不知道为什么危险,但是吧,还是及早checkout回某个branch比较好 ...... ### 移动 Local branch 和 Remote Branch 标签 然后是移动local和remote branch的标签,一般的话fetch/push就可以日常的移动他们 然后要随意移动local branch标签的话,右键,Undo commit或者 Reset Current Branch to Here 然后要随意移动local branch标签的话,右键,Undo commit,后退一个节点; 或者 任取一个节点右键 Reset Current Branch to Here remote标签?想得美,**remote永远只能前进** 那有错误,想后退,怎么办? 那有错误,想后退,怎么办?Revert Revert的操作有些复杂:在某个节点A上面右键Revert Commit,就在Remote分支标签所在节点后面新建一个Revert Commit节点, 这个节点效果上等同于把A以及A之后的所有节点全都撤销, 然后,remote不动,把HEAD和local动到这个新节点上!  这里我在5上右键Revert,然后就Revert到4的状态 然后可以在这里做一些小修改commit,这里就不修改了,直接push  Revert完毕 好了那基本上就OK了,更多的可以百度,还有更多按钮等着你的探索( a对了,每次Commit都会填写一个“Commit信息”,也就是示例里面的1 2 3 4 5((( 实践上不要这么干,信息最好认真写,尽量写英文,第一行尽量简明,因为只有第一行会显示在线路图里面,详情的可以写下面 local的话可以右键节点 No newline at end of file Message 示例: ``` feat(SoldierChess): added Class SoldierChess xxxxxxxxxxxxxxxxxxxxxxxxx ``` ``` bugfix(SoldierChess): fixed Class SoldierChess's movement bug aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ``` ``` refactor(ChessBoard): refactored ChessBoard blablaablablablaalbalablbalabablaalbal ``` No newline at end of file docs/img.png→docs/VCS/img.png (51.8 KiB) File moved. View file docs/img3.png→docs/VCS/img3.png (18.2 KiB) File moved. View file docs/img4.png→docs/VCS/img4.png (22.5 KiB) File moved. View file Loading
README.md +3 −1 Changes for README.md: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -14,4 +14,6 @@ BugChess是在椰树集团精神下开创的一个鲜榨项目,是一次探索 (如果已经有Configuration了就不用管) 3. 点击绿色播放键运行,跑起来就OK 远程协作简介戳这里[VCS.md](docs/VCS.md) No newline at end of file 远程协作简介戳这里[VCS.md](docs/VCS/VCS.md) test分支可以拿来练习VCS操作 No newline at end of file
docs/VCS.md→docs/VCS/VCS.md +43 −7 Changes for docs/VCS/VCS.md: 43 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ 先打开左下角的git标签页 > Log标签页 ## 基本概念   workspace,目前的工作环境,也就是你电脑上这个项目所在的真实文件夹 Loading Loading @@ -51,7 +51,7 @@ IDEA好像没有add。。。。。 重新放这张图,记住这张图   push, fetch, 还有Update (= pull = fetch + checkout), 在Log标签页左侧各个分支那里右键选项里面 Loading Loading @@ -108,7 +108,7 @@ merge就是IDEA把每个文件的文本片段差别在哪里都给你弹窗展 有些情况下,比较简单的冲突,或者没有冲突只是多了几个文件的差别那样的话,merge是可以一键完成的 ### 移动标签 ### 移动HEAD标签 移动HEAD,也就是workspace的内容,到其他节点上,用checkout,线路图找节点右键checkout, Loading @@ -118,14 +118,50 @@ merge就是IDEA把每个文件的文本片段差别在哪里都给你弹窗展 这是比较危险的状态......我也不知道为什么危险,但是吧,还是及早checkout回某个branch比较好 ...... ### 移动 Local branch 和 Remote Branch 标签 然后是移动local和remote branch的标签,一般的话fetch/push就可以日常的移动他们 然后要随意移动local branch标签的话,右键,Undo commit或者 Reset Current Branch to Here 然后要随意移动local branch标签的话,右键,Undo commit,后退一个节点; 或者 任取一个节点右键 Reset Current Branch to Here remote标签?想得美,**remote永远只能前进** 那有错误,想后退,怎么办? 那有错误,想后退,怎么办?Revert Revert的操作有些复杂:在某个节点A上面右键Revert Commit,就在Remote分支标签所在节点后面新建一个Revert Commit节点, 这个节点效果上等同于把A以及A之后的所有节点全都撤销, 然后,remote不动,把HEAD和local动到这个新节点上!  这里我在5上右键Revert,然后就Revert到4的状态 然后可以在这里做一些小修改commit,这里就不修改了,直接push  Revert完毕 好了那基本上就OK了,更多的可以百度,还有更多按钮等着你的探索( a对了,每次Commit都会填写一个“Commit信息”,也就是示例里面的1 2 3 4 5((( 实践上不要这么干,信息最好认真写,尽量写英文,第一行尽量简明,因为只有第一行会显示在线路图里面,详情的可以写下面 local的话可以右键节点 No newline at end of file Message 示例: ``` feat(SoldierChess): added Class SoldierChess xxxxxxxxxxxxxxxxxxxxxxxxx ``` ``` bugfix(SoldierChess): fixed Class SoldierChess's movement bug aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ``` ``` refactor(ChessBoard): refactored ChessBoard blablaablablablaalbalablbalabablaalbal ``` No newline at end of file