How to achieve 'pre-checkout' hook in Git/bitbucket?

后端 未结 3 690
故里飘歌
故里飘歌 2021-02-19 10:41

Result of lots of searching on net is that pre-checkout hook in git is not implemented yet. The reason can be:

  • There is no practical use.
3条回答
  •  礼貌的吻别
    2021-02-19 10:47

    You could write a script that does your backup then checkout. Then create a shell alias so it runs that script instead when you type git checkout.

提交回复
热议问题