git Eclipse EGit 命令行

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

Eclipse EGit Command Line

eclipsegitegit

提问by user2097804

I recently installed Git for Eclipse (EGit) and I have used some basic functions by right-click -> Team -> Add/Commit/Remove/Exclude/etc.

我最近为 Eclipse (EGit) 安装了 Git,并且通过右键单击 -> Team -> Add/Commit/Remove/Exclude/etc 使用了一些基本功能。

However, I would like to use some of the more complicated features of git, and command-line syntaxes. Is there a way to do this in Eclipse or set up EGit in command line?

但是,我想使用 git 的一些更复杂的功能和命令行语法。有没有办法在 Eclipse 中执行此操作或在命令行中设置 EGit?

采纳答案by robinst

This is not provided by EGit itself, but there are multiple options:

这不是由 EGit 本身提供的,但有多种选择:

回答by David M. Karr

I don't believe you can get direct access to a command prompt for egit. However, you could use one of the many plugins that create a command shell at a particular folder, so you can just type the git command you want. One of those is the PathToolsplugin, which also lets you record specific command lines you can run on a shell.

我不相信您可以直接访问 egit 的命令提示符。但是,您可以使用在特定文件夹中创建命令外壳的众多插件之一,因此您只需键入所需的 git 命令。其中之一是PathTools插件,它还可让您记录可以在 shell 上运行的特定命令行。