I have this file structure:
folderIWantStuffIn/
- old_stuff
Now I want to add some new stuff that is in a git repo. I’d like to be able to use git clone and git pull right in the directory and get this:
folderIWantStuffIn/
- old_stuff
- new_stuff
When I use git clone, I get this:
folderIWantStuffIn/
- old_stuff
- NewStuffFolder/
- new_stuff
Are there flags I can pass into git clone to get this behavior?
Try
git clone $URL .The magic there is the.—it tells git the directory into which it should clone the repo (in this case, we’re using., aka, the current directory). See the docs for more options.