1
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?

【ローカル開発で便利】TypeScriptの型エラーでgit pushできない!--no-verify で一時回避する方法

Posted at

🐶 husky が push をブロック!?

TypeScript の型エラーが原因で git push ができなくてあれ?…みたいな状況、ありませんか?

プロジェクトにもよりますが、
僕の場合はhuskypre-push で型チェック(tsc)をしていて、エラーがあると push を止めてくれるようになっています。

huskeyとは??

でも、

「まだ開発途中だからpushしておきたいだけなんだよ〜!」
「ローカルで動くかだけ先に見たい!」

というケースもありますよね。


✅ 解決法:--no-verify で一時的に無視!

git push origin HEAD -u --no-verify

これで一旦型エラーを回避してのpushができるようになりました”

1
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
1
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?