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
Arrow up and number on Eclipse meaning
提问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 commit
command only introduces the changes to your local repository. To make them appear in the remote, you have to use git push
after 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 Team
option. Clicking it brings up another context menu, which should have a Push
option.
或者,您可以使用 Eclipse 作为 GUI 来执行相同的步骤。在右键单击项目时弹出的上下文菜单中,应该有一个Team
选项。单击它会弹出另一个上下文菜单,其中应该有一个Push
选项。