03-26-2020 03:56 PM
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.
03-26-2020 03:59 PM
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.
08-24-2020 10:39 AM
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