05.2023
webdev
git
gitkraken
Quicker way to open new repo in GitKraken
You'll need to find a new hobby for all that saved time.
TLDR;
gitkraken -p .
How did we get here?
My most common path to start a new project is this:
npx init something
cd something
npm install
git init
git add .
git commit -m init
webstorm .
# Manually open repo in GitKraken clicking through multiple directories
# because for some reason I didn't think that there should be faster
# and more efficient way to do it.
So naturally I tried
gitkraken .
And it opened, but it was not the repo I wanted to open. It was the most recent one.
So after typing gitkraken -h
and getting really curious what -nexxuz
does.
Spoiler: It's cool.
I stumbled upon:
-p, --path Open the repository specified by path.
So my final "multiple clicks" step was replaced with:
gitkraken -p .
I should go,
Krystian