Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ソース管理のない多くのファイルとフォルダーがある既存のフォルダーがあります。
ルートフォルダにgitリポジトリを作成します。
git init
しかし、「マスター」は存在しません
git branch
何も返しません。
masterブランチを作成し、既存のファイルとフォルダーを含むフォルダー内の最初の唯一のブランチとして設定するにはどうすればよいですか?
master
ブランチは、最初のファイルをコミットした後に自動的に作成されるデフォルトのmasterブランチです。
git add . git commit -m "initial commit"