git GitHub:什么是“wip”分支?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15763059/
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 15:54:13  来源:igfitidea点击:

GitHub: What is a "wip" branch?

gitgithubbranchgit-branch

提问by akashivskyy

When I was browsing GitHub repositories I quite often saw "wip" branches (e.g. 3.1.0-wip). What does "wip" mean?

当我浏览 GitHub 存储库时,我经常看到“wip”分支(例如3.1.0-wip)。“擦”是什么意思?

I couldn't find the answer anywhere - neither on Google nor on GitHub:help.

我在任何地方都找不到答案——无论是在 Google 上还是在 GitHub:help 上。

采纳答案by koppor

On GitHub, pull requests are prefixed by [WIP]to indicate that the pull requestor

在 GitHub 上,拉取请求以 前缀[WIP]表示拉取请求者

  1. has not yet finished his work on the code (thus, work in progress), but
  2. looks for have some initial feedback (early-pull strategy), and
  3. wants to use the continuous integration infrastructure of the project. For instance, GitHub Actions, TravisCI, CodeCov, and codacy.
  1. 还没有完成他的工作,对代码(因此,w ^ñ progress),但
  2. 寻找有一些初步反馈(早期拉动策略),以及
  3. 想使用项目的持续集成基础设施。例如,GitHub ActionsTravisCICodeCovcodacy

More motivation for WIP pull requests is written by @ben straubat https://ben.straub.cc/2015/04/02/wip-pull-request/.

更多关于 WIP 拉取请求的动机由@ben straubhttps://ben.straub.cc/2015/04/02/wip-pull-request/撰写。

NewSince Februrary 2019, GitHub offers draft pull requests, which make WIP more explicit: https://github.blog/2019-02-14-introducing-draft-pull-requests/

新增自 2019 年 2 月以来,GitHub 提供草案拉取请求,使 WIP 更加明确:https: //github.blog/2019-02-14-introducing-draft-pull-requests/

回答by CB Bailey

Conventionally, "wip" stands for "work in progress".

通常,“wip”代表“正在进行的工作”。

回答by Daniel Danielecki

Literally it means Work In Progress (WIP) as previous answers correctly point out. However, it does notoccur only on GitHub, but can happen also on any other competitive platform, e.g. Bitbucket, GitLab etc.

从字面上就意味着W¯¯ñ Progress(WIP)为以前的答案正确地指出。然而,它不仅发生在 GitHub 上,也可能发生在任何其他竞争平台上,例如 Bitbucket、GitLab 等。

It can be the case also with your Git (the VCS, not GitHub, GitLab, etc. - it's not the same) on local machine. In situations when you would like to save your progress on current branch and move to another it can be helpful in order not to lose your uncommited changes. In such a way you'd like to use use git stash. Then you will see the WIP...as one of the branches in Git Bash/GUI.

本地机器上的 Git(VCS,而不是 GitHub、GitLab 等 - 它不一样)也可能是这种情况。在您想保存当前分支上的进度并移动到另一个分支的情况下,为了不丢失未提交的更改,这可能会有所帮助。在这种情况下,您想使用 use git stash。然后您将看到WIP...Git Bash/GUI 中的分支之一。

If you would submit this branch then of course you can see it in the project on Bitbucket/GitHub/GitLab too. Therefore, it is not only for push Pull Requests (PRs), but might be accidentally/on purpose pushed too.

如果你提交这个分支,当然你也可以在 Bitbucket/GitHub/GitLab 上的项目中看到它。因此,它不仅适用于推拉请求 (PR),还可能被意外/故意推送。