如何在 Windows 上通过 SourceTree 使用 git 命令行
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25503601/
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
How to use git command line via SourceTree on Windows
提问by Pascal Klein
I am currently using SourceTree on Windows 7. If I run into any problems with my git repository the solutions online always rely on the command line. Is there anyway to enter these commands in SourceTree?
我目前在 Windows 7 上使用 SourceTree。如果我的 git 存储库遇到任何问题,在线解决方案总是依赖于命令行。有没有办法在 SourceTree 中输入这些命令?
回答by pqnet
From the Actions
menu select Open In terminal
. You will be presented with a poor shell in which you can use git commands
从Actions
菜单中选择Open In terminal
。你将看到一个糟糕的 shell,你可以在其中使用 git 命令
回答by Andrei Karcheuski
回答by mikemaccana
You can also use Sourcetree's embedded git from the terminal. Add this to your powershell profile:
您还可以从终端使用 Sourcetree 的嵌入式 git。将此添加到您的 powershell 配置文件中:
Add-PathVariable "${env:UserProfile}\AppData\Local\Atlassian\SourceTree\git_local\bin"