2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

自分専用pre-commit hook風なことを簡単にやるtips

2
Posted at

はじめに

  • pushして静的解析などを忘れており、ciで気づくことがあった

問題

  • pre-commit hookあたりのタイミングで実施したいが、チーム全員を揃えるには本当にベストか?判断が必要である

解決

  • 以下のようなエイリアスを入れる。pushコマンドのオプションも使えるし、&&前で失敗したら止まるため、実質的なpre-commit hookとして動作する
alias gitpushorigin='{実行したいコマンド} && git push origin'

終わりに

  • linuxコマンドとかの仕様はwikipediaが読みやすいかも。これはbash

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?