PUSH all local GIT branches? Best Practice?

前端 未结 3 2112
[愿得一人]
[愿得一人] 2021-02-14 18:03

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

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-14 18:19

    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.

提交回复
热议问题