LoginSignup
0
1

More than 3 years have passed since last update.

GitHubで"Initial Commit"をすぐにする方法

Posted at

はじめに

GitHub Codespaceは、ブランチがないと作れないので

やり方

最初だけローカルかGitpodを用いります。

1, まず、GitHubにusername/initialという名前のRepoを作ります。
2, github.com/username/initial/settings を開いて、Template Repositoryに✅を入れます。
3, クローンします。

git clone https://github.com/username/initial.git
gitpod.io/#github.com/username/initial

4, git commit --allow-empty -m 'Initial Commit' をしてPushします。

コミットメッセージはご自由に

これで、Repoを作るときにTemplateからinitialを選択することで、Initial Commit済みのRepoを作れます。
これならすぐにCodespaceに行けますね!

俺って天才かも

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