Hacker News new | ask | show | jobs
by justinmk 3713 days ago
> For example, if you type `git add .` while in ~/code/some-project, you will add it to your dotfiles repository.

If your project has its own .git directory, no, it won't add to ~/.git.

1 comments

You're right. I forgot to mention that this only happens if you haven't initiated a new git repository in the directory you're working in.