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

后端 未结 3 674
故里飘歌
故里飘歌 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 11:06

    Pre-checkout use case: delete un-versioned local files generated by gulp watch:css task so they are overwritten after checkout and rebuilt by gulp.

    Instead, I'm just going to write a shell script that gets the repo root and then deletes any of a list of gulp-generated files found.

提交回复
热议问题