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?

GitHubのデフォルトブランチをmain -> developに変更すr

Posted at

仕事で必要な場面が多く

GitHubのブランチは、mainブランチがデフォルトですが、developブランチに変更して使うことが多くあります。しかしやり方を忘れてしまうことが多い😅

やり方は公式に書いてはある。

たまにしかやらないと忘れますよね。設定手順をスクリーンショットで作ることにしました。

CleanShot 2025-07-10 at 08.03.42@2x.png

developに書き換える。

スクリーンショット 2025-07-10 8.06.42.png

スクリーンショット 2025-07-10 8.07.08.png

スクリーンショット 2025-07-10 8.07.23.png

スクリーンショット 2025-07-10 8.07.31.png

変更されました。これで完了です!

CleanShot 2025-07-10 at 08.07.54@2x.png

まとめ

mainブランチがデフォルトブラントのままの現場もたまにありますが、developブランチでやることが多いので変更をしておくと面倒な作業に対応することが減ります(^_^;)

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?