aider icon indicating copy to clipboard operation
aider copied to clipboard

How to change top of git repo, accidentally started aider first time in homedir

Open 5ocworkshop opened this issue 1 year ago • 3 comments

Issue

When I first tried aider months ago I must have launched it while in my home directory and of course it set that as the top of the git repo. You can imagine this is sub-optimal for keeping projects separated.

Is there an elegant way for me to reset the git repo to a sub-directory so I can have different repos for different projects under my home directory? Even if I lost my change history I'm ok with that to get this cleaned up.

Thanks in advance. 0.43 with GPT-4o and Sonnet 3.5

Version and model info

No response

5ocworkshop avatar Jul 09 '24 11:07 5ocworkshop

Initialize git in folder you need it in.

Open aider from that folder.

ackoi avatar Jul 09 '24 13:07 ackoi

But if the folder is a subdir of a parent where the top of the git tree is, won't it still be included or will that cause that subdir to be removed?

5ocworkshop avatar Jul 10 '24 16:07 5ocworkshop

Thanks for trying aider and filing this issue.

Aider should use the most specific git repo.

You could also consider deleting the .git dir from your home directory. But you would lose all prior git history if you did that.

paul-gauthier avatar Jul 12 '24 08:07 paul-gauthier