mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
copy
This commit is contained in:
parent
4d38dfbb3b
commit
3b204b7d1b
1 changed files with 9 additions and 2 deletions
|
@ -17,10 +17,8 @@ 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.
|
||||||
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.
|
- 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.
|
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
|
## In-chat commands
|
||||||
|
|
||||||
|
@ -37,3 +35,12 @@ While it is not recommended, you can disable aider's use of git in a few ways:
|
||||||
- `--no-git` will completely stop aider from using git on your files. You should ensure you are keeping sensible backups of the files you are working with.
|
- `--no-git` will completely stop aider from using git on your files. You should ensure you are keeping sensible backups of the files you are working with.
|
||||||
|
|
||||||
|
|
||||||
|
## Commit attribution
|
||||||
|
|
||||||
|
Aider marks commits that it either authored or committed.
|
||||||
|
|
||||||
|
- If aider authored the changes in a commit, they will have "(aider)" appended to the git author and git committer name metadata.
|
||||||
|
- If aider simply committed changes (found in dirty files), the commit will have "(aider)" appended to the git committer name metadata.
|
||||||
|
|
||||||
|
You can use `--no-attribute-author` and `--no-attribute-committer` to disable
|
||||||
|
modification of the git author and committer name fields.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue