zoukankan      html  css  js  c++  java
  • Move to Another Changelist

    Move to Another Changelist 将选中的文件转移到其他的 Change list 中。 Change list 是一个重要的概念,这里需要进行重点说明。很多时候,我们开发一个项目同时并发的任务可能有很多,每个任务涉及到的文件可能都是基于业务来讲的。 所以就会存在一个这样的情况:我改了 30 个文件,其中 15 个文件是属于订单问题,剩下 15 个是会员问题,那我希望提交代码的时候是根据业务区分这些文件的, 这样我填写 Commit Message 是好描述的,同时在文件多的情况下,我也好区分这些要提交的文件业务模块。 所以我一般会把属于订单的 15 个文件转移到其他的 Change list中,先把专注点集中在 15 个会员问题的文件,先提交会员问题的 Change list,然后在提交订单会员的 Change list。 我个人还有一种用法是把一些文件暂时不提交的文件转移到一个我指定的 Change list,等后面我觉得有必要提交了,再做提交操作,这样这些文件就不会干扰我当前修改的文件提交。 总结下 Change list 的功能就是为了让你更好地管理你的版本控制文件,让你的专注点得到更好的集中,从而提供效率。

     将选中的文件转移到其他的 Change list 中。
    Change list 是一个重要的概念,这里需要进行重点说明。很多时候,我们开发一个项目同时并发的任务可能有很多,每个任务涉及到的文件可能都是基于业务来讲的。
    所以就会存在一个这样的情况:我改了 30 个文件,其中 15 个文件是属于订单问题,剩下 15 个是会员问题,那我希望提交代码的时候是根据业务区分这些文件的, 这样我填写 Commit Message 是好描述的,同时在文件多的情况下,
    我也好区分这些要提交的文件业务模块。

    所以我一般会把属于订单的 15 个文件转移到其他的 Change list中,先把专注点集中在 15 个会员问题的文件,先提交会员问题的 Change list,然后在提交订单会员的 Change list。
    我个人还有一种用法是把一些文件暂时不提交的文件转移到一个我指定的 Change list,等后面我觉得有必要提交了,再做提交操作,这样这些文件就不会干扰我当前修改的文件提交。


    总结下 Change list 的功能就是为了让你更好地管理你的版本控制文件,让你的专注点得到更好的集中,从而提供效率。

     http://wiki.jikexueyuan.com/project/intellij-idea-tutorial/vcs-introduce.html

    Changelist

    A changelist is a set of changes in files that represents a logical change in source code. The changes specified in a changelist are not stored in the repository until committed (pushed).

    Any changes made to the source files, are automatically included in the active changelist. Initially, the Default changelist is active, but you can make any other changelist active. The active changelist is displayed on top of the Version Control tool window, with the name being highlighted in bold font.

    In addition to the Default changelist, you can create new changelists, delete existing ones (except for the Default changelist), and move files between changelists.

    All modified, deleted, unversioned and other files are managed in the Version Control tool window. From this window you can:

    • Commit (push) changelists.
    • Create new changelists (if you want to keep an eye on certain files and changes).
    • Remove existing changelists and set the default changelists.
    • Rollback modified files in changelists.
    • Add the unversioned files and directories to the version control.
    • Move files between changelists.
    • Show differences on selected files.
    • Refresh the list of VCS changes.
    • Jump to the source code from within a changelist.
    • Shelve (stash) and unshelve (unstash) changes.

    https://www.jetbrains.com/help/idea/2016.2/changelist.html

  • 相关阅读:
    Mysql 重做日志及与二进制日志的区别
    【MySql】性能优化之分析命令
    ubuntu一些基本软件安装方法
    Linux学习笔记
    exp/imp三种模式——完全、用户、表
    Oracle学习日志20150302
    如何在macOS Sierra中运行CORE Keygen破解程序
    国内各大互联网公司技术站点集合
    React Native资料
    React Native集成到现有项目(非cocoa pods)
  • 原文地址:https://www.cnblogs.com/softidea/p/5984531.html
Copyright © 2011-2022 走看看