LoginSignup
25
21

More than 5 years have passed since last update.

--bareじゃないレポジトリにpushする

Posted at

デフォルトでは--bareじゃないレポジトリにpushしようとすると怒られる。自分一人の開発だとがんがんpushしても問題ないケースがある。
non-bareへのpushを許すには、リモートのレポジトリ上で

% git config receive.denyCurrentBranch ignore 

を実行する。

25
21
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
25
21