I have directory A with files matching directory B. Directory A may have other needed files. Directory B is a git repo.
I want to clone directory B to directory A bu
I was looking for something similar, and here's what I came up with:
My situation is one where I have an active web tree and I was trying to create a remote repository for it without moving any of the files in the current web tree. Here's what I did:
git init
git clone --bare /path/to/web/repo
[remote "origin"]
section.[remote "origin"]
section to .git/config in the web tree pointing to the new remote repo.