Ability to open GitKraken from the CLI
It would be really cool if we could have an easy way of opening GitKraken from the command line.
Something like `gitkraken ~/home/dev/project` or `gitkraken .` to open the current directory in GitKraken.
Comments: 6
-
16 Jun, '21
William Penton (Nexxuz)Already exists:
$ gitkraken --help
Options:
-d, --diagnostic-level, --log-level Override in-app logging level. The available values are STANDARD, EXTENDED, and SILLY
-e, --encoded-uri Encoded URI (scheme) handler; takes a gitkraken:// URI that has been URI-encoded. Overrides -p and -u.
-h, --help Print this usage message.
-l, --log-file Log all output to file.
-n, --nexxuz Nothing to see here...
-p, --path Open the repository specified by path
-u, --uri URI (scheme) handler; takes a gitkraken:// URI. Overrides -p. GitKraken URIs start with a directive, such as "repo". Example: gitkraken://repo/home/me/proj
-v, --version Print the version.
-z, --performance Run performance timings
There is also the undocumented one --disable-gpu which, you guessed it, disables the gpu HW acceleration. -
16 Jun, '21
Calvin AllenHey, Aaron, not sure if you use Windows and PowerShell or not, but if so I wrote about creating an alias that does part of what you're asking for - https://www.codingwithcalvin.net/launch-gitkraken-using-a-powershell-alias/
First party support would be much better, but in the interim, maybe that can help. -
16 Jun, '21
Manny GrillAlso GitKraken now has the `gitkraken` alias so you should be able to just do `gitkraken` to launch GitKraken or `gitkraken -p ~/home/dev/project` to launch GitKraken with the specific repository open.
-
26 Nov, '21
Alexander Moser`gitkraken -p example` doesn't work if GitKraken is already running.
Since I have GitKraken running virtually always I'd love to be able to open a repository I just `git clone`d by using `gitkraken -p`. -
15 Dec, '22
VicHere's my experience as of 2022-12-14, version 9.0.0 (Mac arm64). I am in the root of the working directory of a known repo I have opened before. GitKraken is already open. I type `gitkraken -p .`, GitKraken opens up a new tab but says "Open Failed / Could not find a compatible repository at ''."
Looks like `gitkraken -p $(pwd)` does work though. -
08 Feb
DavidMy current workaround in shell based environments is to create a function in my profile to override gitkraken.
```
export GITKRAKEN="$(where gitkraken)"
function gitkraken {
if [ -d "$1/.git" ]; then
"$GITKRAKEN" -p "$(pwd)"
else
"$GITKRAKEN" $@
fi
}
```
Allows me to just type `gitkraken .` like most other git clients.