I'm just starting to use git for version control. I'd like to keep a backup copy of my repository on a local fileserver. After reading about the right way to backup a git repository, I decided to store the repository as a git bundle on the fileserver.
I can bundle my repository and copy the resulting bundle to the fileserver. Check. I also tried cloning and pulling from it. Everything working well. However, I'd like to push my local changes from time to time as well. When I execute something like
git push bundlefile.git
I get the error:
error: failed to push some refs to 'bundlefile.git'
You can clone or pull from a bundle, but is it not possible to push to it? I don't really want to create a bundle of my whole repository every time I want to back up.
Is this user error or are bundles not intended to be pushed to?