i’d like to just checkout the files without the .git files and the whole repository. It’s because i’d like to manage a website (php & html) with git and i’m looking for an easy way to update the files in the htdocs folder from the repository, without having the repository public. (now it’s in the home-dir and is accessed via ssh, but i have to put the new files to htdocs manually.
Share
The git-archive manpage contains the following example:
Or you can use low level git-checkout-index, which manpage contains the following example:
Or you can try to use
--work-treeoption to git wrapper, or GIT_WORK_TREE environment variable, e.g. by using “git --work-tree=/somwehere/else checkout -- .“.