$ go install github.com/davfive/gitspaces/v2@latest
-> installs to ~/go/bin/gitspaces
$ gitspaces setup
-> run once to install .gitspaces config directory and start user setup
Initial Setup and Use
Run gitspaces setup to be walked through first-time configuration.
If you run any gitspaces <cmd> and your environment isn't setup properly, gitspaces setup setup will automatically run.
GitSpaces configuration directory is created on first run.
Step 1 - Configure where you keep your git projects
GitSpaces config.yaml file contains a ProjectPaths field.
This field defines a list of paths to your project directories.
Instructions for setting up ProjectPaths field is in the config file.
Windows:
%USERPROFILE%/.gitspaces/config.yaml
Mac/Linux
`MacOS: ~/.gitspaces/config.yaml`
Step 2 - Configure the gitspaces shell wrapper
Some gitspaces commands change the current working directory of the user. To accomplish this, gitspaces is run through a shell (bash / powershell) wrapper. Once you've setup your shell wrapper, restart your terminal and start using GitSpaces.
Bash/Zsh (Mac/Linux/Windows)
Copy the following lines into your .bashrc or .zshrc file.
. ~/.gitspaces/gitspaces.function.sh
alias gs=gitspaces # optional
PowerShell (Mac/Windows)
Copy the following lines into your PowerShell $PROFILE
This will create a new GitSpaces project with three clones of this gitspaces project. By default all spaces are "asleep". You will be asked to wake one up and give it a name.