Worktree commands help you manage files in your working directory and prepare changes for commits. These commands are essential for day-to-day Git operations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/git/git/llms.txt
Use this file to discover all available pages before exploring further.
git-add
Add file contents to the index
git-mv
Move or rename a file, a directory, or a symlink
git-restore
Restore working tree files
git-rm
Remove files from the working tree and from the index
Overview
These commands operate on files in your working directory:- git-add stages changes for the next commit
- git-mv moves or renames files while maintaining history
- git-restore discards or restores changes in working files
- git-rm removes files from both working tree and index
Related Commands
- Init Commands - Repository creation
- Info Commands - Inspecting changes
- History Commands - Committing changes
