git clone [<username>@]<host>:</path/to/repository>,
You may want to update a repository with a totally new set of files, that is:
This avoids problems with overwriting of existent files, which may be convenient when made with a script.
This can be done with following procedure :
git clone –bare ...(you should then only have a
.gitdirectory in the repository),
bareentry in the
false(can be automated with
sed "s/bare = true/bare = false/g" -i .git/configwith GNU tools),
git add -A,
--set-upstream origin masteroptions.