Git User Group

cancel
Showing results for 
Search instead for 
Did you mean: 

Launch Fork (GUI) from the Windows Explorer address bar

You can launch Fork (the git GUI client) from the Windows Explorer address bar.

 

First create a file fork.bat that contains :

 

@echo off
SET cur_dir=%cd%
start "" "%LOCALAPPDATA%\Fork\Fork.exe" "%cur_dir%"

 

Add the path of fork.bat to your path environment variables.

 

Go to a git repo folder in the windows explorer and type "fork" in the address bar.

This will open the repo in Fork.

 

Nice trick to open the repo immediately from your explorer.

Message 1 of 3
(3,578 Views)

To do this in Sourcetree create a file "sourcetree.bat"

 

@echo off
SET cur_dir=%cd%
start "" "%LOCALAPPDATA%\SourceTree\SourceTree.exe" -f "%cur_dir%"

 

 

Add the path of sourcetree.bat to your path environment variables.

 

Go to a git repo folder in the windows explorer and type "sourcetree" in the address bar.

This will open the repo in Sourcetree.

Message 2 of 3
(3,565 Views)

Nice trick! Stefan, especially to add a repository to Fork for the first time.

 

I use the reverse approach once a repository has been added to Fork... I open Fork first. Since I invariably have a couple of repositories open, I just use the shortcut Ctrl-Alt-O to open the repository of interest in Windows Explorer.

 

Vishak

 

0 Kudos
Message 3 of 3
(3,316 Views)