PUSH all local GIT branches? Best Practice?

前端 未结 3 1568
轮回少年
轮回少年 2021-02-14 17:32

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:13

    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.

提交回复
热议问题