Git clone only files without folder

You can simply pull your master branch: git init git remote add origin “origin-url” git pull origin master Clone commands will usually just clone the whole repository with the directory.

Categories git