Java Eclipse 上的向上箭头和数字含义

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

Arrow up and number on Eclipse meaning

javaeclipsegitmaven

提问by user3631862

I'm working on a project using Eclipse with Maven and Bitbucket. Right now I can't do any commit, I mean even if I press the commit button, I can't see it on Bitbucket. Furthermore, next to my project's name I got a symbol with an arrow up and the number 2 next to it.

我正在使用带有 Maven 和 Bitbucket 的 Eclipse 进行项目。现在我不能做任何提交,我的意思是即使我按下提交按钮,我也无法在 Bitbucket 上看到它。此外,在我的项目名称旁边,我有一个带有向上箭头和旁边数字 2 的符号。

What does it means? What should I do?

这是什么意思?我该怎么办?

回答by toniedzwiedz

This means your local branch is two commits ahead of the remote one. Git is a distributed version control system. The git commitcommand only introduces the changes to your local repository. To make them appear in the remote, you have to use git pushafter committing your changes.

这意味着您的本地分支比远程分支早两次提交。Git 是一个分布式版本控制系统。该git commit命令仅引入对本地存储库的更改。要使它们出现在遥控器中,您必须git push在提交更改后使用。

Alternatively, you can use Eclipse as a GUI to perform the same steps. In the context menu that pops up when you right-click the project, there should be a Teamoption. Clicking it brings up another context menu, which should have a Pushoption.

或者,您可以使用 Eclipse 作为 GUI 来执行相同的步骤。在右键单击项目时弹出的上下文菜单中,应该有一个Team选项。单击它会弹出另一个上下文菜单,其中应该有一个Push选项。