LoginSignup
2
0

More than 1 year has passed since last update.

Git ブランチ指定なしでpushできるように設定する

Posted at

概要

  • ローカルリポジトリからpushする際にブランチの指定を行わずpushする方法をまとめる。

注意

  • 本設定を行うと$ git pushコマンドだけでpushができてしまいます。
  • 意図しないPushにご注意ください。

方法

  • ローカルリポジトリにて下記を実行する。

    git config --local push.default "current"
    
  • $ git config -lを実行してpush.default=currentと表示されていることを確認する。

  • $ git pushコマンドのみでpushする事ができる。

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