mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
updated git docs
This commit is contained in:
parent
9e228670a2
commit
aa3dbac94c
1 changed files with 10 additions and 3 deletions
|
@ -14,14 +14,21 @@ Aider is tightly integrated with git, which makes it easy to:
|
||||||
|
|
||||||
Aider specifically uses git in these ways:
|
Aider specifically uses git in these ways:
|
||||||
|
|
||||||
- It asks to create a git repo if you launch it in a directory without one.
|
- It asks to create a git repo if you launch it in a directory without one.
|
||||||
- Whenever aider edits a file, it commits those changes with a descriptive commit message. This makes it easy to undo or review aider's changes.
|
- Whenever aider edits a file, it commits those changes with a descriptive commit message. This makes it easy to undo or review aider's changes.
|
||||||
- Aider takes special care before editing files that already have uncommitted changes (dirty files). Aider will first commit any preexisting changes with a descriptive commit message. This keeps your edits separate from aider's edits, and makes sure you never lose your work if aider makes an inappropriate change.
|
These commits will have "(aider)" appended to their git author and git committer metadata.
|
||||||
|
- Aider takes special care before editing files that already have uncommitted changes (dirty files). Aider will first commit any preexisting changes with a descriptive commit message.
|
||||||
|
This keeps your edits separate from aider's edits, and makes sure you never lose your work if aider makes an inappropriate change.
|
||||||
|
These commits will have "(aider)" appended to their git committer metadata.
|
||||||
|
|
||||||
|
## In-chat commands
|
||||||
|
|
||||||
Aider also allows you to use in-chat commands to `/diff` or `/undo` the last change.
|
Aider also allows you to use in-chat commands to `/diff` or `/undo` the last change.
|
||||||
To do more complex management of your git history, you cat use raw `git` commands,
|
To do more complex management of your git history, you cat use raw `git` commands,
|
||||||
either by using `/git` within the chat, or with standard git tools outside of aider.
|
either by using `/git` within the chat, or with standard git tools outside of aider.
|
||||||
|
|
||||||
|
## Disabling git integration
|
||||||
|
|
||||||
While it is not recommended, you can disable aider's use of git in a few ways:
|
While it is not recommended, you can disable aider's use of git in a few ways:
|
||||||
|
|
||||||
- `--no-auto-commits` will stop aider from git committing each of its changes.
|
- `--no-auto-commits` will stop aider from git committing each of its changes.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue