Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use git command line via SourceTree on Windows

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?

like image 906
Pascal Klein Avatar asked Aug 26 '14 10:08

Pascal Klein


3 Answers

From the Actions menu select Open In terminal. You will be presented with a poor shell in which you can use git commands

like image 162
pqnet Avatar answered Oct 06 '22 06:10

pqnet


Another way to open that poor shell is just by clicking on Terminal icon in the main window
enter image description here

like image 20
Andrei Karcheuski Avatar answered Oct 06 '22 06:10

Andrei Karcheuski


You can also use Sourcetree's embedded git from the terminal. Add this to your powershell profile:

Add-PathVariable "${env:UserProfile}\AppData\Local\Atlassian\SourceTree\git_local\bin"
like image 2
mikemaccana Avatar answered Oct 06 '22 07:10

mikemaccana