Quick Start with gws
masterTo start managing your workspace with gws, follow these steps:
1. Initialize your workspace
Option A: Manual Configuration
Create a .projects.gws file in your workspace folder (e.g., ~/dev) and define your projects using the syntax described in the Syntaxes section.
Example .projects.gws content:
# Work related
work/tools/q | https://github.com/harelba/q.git
# Other
contrib/gws | https://github.com/StreakyCobra/gws.git
contrib/peru | https://github.com/buildinspace/peruOption B: Automatic Detection
Navigate to your workspace folder and run gws init. This will detect existing Git repositories and generate the .projects.gws file for you.
2. Sync and Manage Repositories
- Clone missing repos: Run
gws updateto clone all repositories listed in.projects.gwsthat are not yet present on your system. To clone only specific ones, usegws clone <path>. - Check status: Run
gwsorgws statusto see which repositories are clean, have uncommitted changes, or are out-of-sync withorigin.
cd path/to/your/workspace
gws init
gws update