gw is a cross-platform command-line tool that simplifies managing your Git workspaces. With gw, you can handle multiple tasks efficiently without getting lost in commands. Follow these simple steps to get started.
To install gw, follow these guidelines based on your operating system.
Homebrew: Open your terminal and run:
brew install golbin/tap/gw
Install Script: Alternatively, run the following command:
curl -fsSL https://raw.githubusercontent.com/golbin/gw/main/install.sh | bash
Scoop: If youβre using Scoop, add the repository and install gw by running:
scoop bucket add golbin https://github.com/golbin/scoop-bucket
scoop install gw
For all versions, visit this page to download gw and select the appropriate file for your system.
Once you have installed gw, you can start using it right away. Hereβs a simple workflow to help you get started:
Create a new workspace:
gw add demo
Navigate to the new workspace:
gw cd demo
Create a new file:
touch demo.md
Check the status of your workspace:
gw status
Apply changes:
gw apply demo
Jump to the root of your repository quickly by using the command:
gw cd
Here are some useful commands for navigating your workspaces:
gw cd root
gw cd <name>
Replace <name> with the name of your workspace.
For a smoother experience, configure shell integration so that the gw cd command changes your current directory automatically. This integration works with various shells without prompting you for setup.
Run:
gw shell-init --install
If you want to make this fully automatic during your current session, use:
eval "$(gw shell-init)"
To view the integration script without installing, run:
gw shell-init <shell>
Replace <shell> with bash or zsh as needed.
If you face issues during installation or while using gw, here are some common solutions:
For more help, visit our GitHub Issues page.
If you have questions or need assistance, please reach out. You can create an issue on the GitHub repository, and weβll get back to you as soon as we can.
Enjoy using gw for a simpler and more organized Git workflow. Visit this page to download gw and start today!