I created a bare repo to publish my repository, but I can\'t figure out how to update the bare repo with the current state of the main repository.
Assuming:
$ git clone --bare https://github.com/.../foo.git
Fetch with:
$ git --git-dir=foo.git fetch origin +refs/heads/*:refs/heads/* --prune
Note: --git-dir=foo.git is not required if you cd to the directory first.
--git-dir=foo.git
cd