git IntelliJ IDEA 中的变更列表是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11068659/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 13:56:43  来源:igfitidea点击:

What is a changelist in IntelliJ IDEA?

gitintellij-idea

提问by dingalingchickenwiing

What is a changelist in IntelliJ IDEA? Is it similar to a commit? When adding one, I have the following options:

IntelliJ IDEA 中的变更列表是什么?它类似于提交吗?添加一个时,我有以下选项:

  • Name (text field)
  • Comment (text field)
  • Make this changelist active (checkbox)
  • Track context (checkbox)
  • 名称(文本字段)
  • 评论(文本字段)
  • 激活此更改列表(复选框)
  • 跟踪上下文(复选框)

回答by VonC

Changelists, when used with Git, is a way to split your index (i.e. the files you have added to git) into logical filesets. See Using Git Locally with IntelliJ IDEA

Changelists与 Git 一起使用时,是一种将索引(即您添加到 git 的文件)拆分为逻辑文件集的方法。请参阅通过 IntelliJ IDEA 在本地使用 Git

Those changelists can represent whatever you want (a task, a fix, a merge etc), but they are not git commits.

这些更改列表可以代表您想要的任何内容(任务、修复、合并等),但它们不是 git 提交。

You can commit one or several changelists.

您可以提交一个或多个更改列表。

default changelist

默认更改列表

When you add a file to the Git Index, IntelliJ IDEA adds your file to the default changelist, named... "default".

当您将文件添加到 Git 索引时,IntelliJ IDEA 会将您的文件添加到默认更改列表中,名为...“默认”。