How to back up private branches in git

前端 未结 7 2188
遇见更好的自我
遇见更好的自我 2020-12-22 17:52

I have a local branch for day-to-day dev work in git. My workflow is:

  1. Do stuff on local_branch, commit
  2. Fetch origin/master
  3. Rebase local_bran
7条回答
  •  無奈伤痛
    2020-12-22 18:07

    There's nothing wrong with pushing personal branches. It is generally discouraged because people might start work based on your branch, and when you rebase, their changes are left floating.

    What I do is use a prefix to denote "this is my branch, use it on your own risk", like: fc-general-cleanup.

提交回复
热议问题