Should ALL locally created GIT branches be pushed to the central-repository on a daily basis? What is best-pracice workflow concerning this?
We created a GIT repository
I agree with you, using a central repo for backup of daily work is a bad idea. It should hold commits meant to be shared, tested or released.
Backup of daily work should either happen to another repo, more permissive, with optionally an automated git push --force --all backup-repo
task on each dev machine, or have them a more classic backup tool.
You can always have the user clean up their remote branches when they are done with it. It's not a bad idea to have them push their local branches up just for safe keeping (especially if there is no backup solution on their box). Otherwise if their machine dies their local branch is gone.
I prefer not polluting the central repo with all branches of all users.
Don't mix: