Quickstart¶
Get twig working in about two minutes. No config required to start.
1. Install¶
2. Try it — no config needed¶
twig works out of the box with sensible defaults. Inside any git repo:
3. Add shell aliases (optional but recommended)¶
Add these to your .zshrc or .bashrc to keep your short-form muscle memory:
Or use twig's built-in aliases directly:
4. Create a config file (optional)¶
twig's defaults cover most cases. Create a config only when you want to customise behaviour.
| ~/.config/twig/config.toml | |
|---|---|
That's a typical minimal config. See the full reference for everything available.
5. Enable passthrough (optional)¶
To use twig as a full git replacement — passing unknown commands through to git transparently:
Then alias git to twig in your shell:
Now git rebase -i, git stash, git log all continue to work exactly as before.