How do I create a master branch in a bare Git repository?

后端 未结 4 848
夕颜
夕颜 2020-12-13 00:13

(All done in poshgit on Windows 8):

git init --bare test-repo.git
cd test-repo.git

(Folder is created with git-ish files and folders inside

4条回答
  •  旧时难觅i
    2020-12-13 00:20

    By default there will be no branches listed and pops up only after some file is placed. You don't have to worry much about it. Just run all your commands like creating folder structures, adding/deleting files, commiting files, pushing it to server or creating branches. It works seamlessly without any issue.

    https://git-scm.com/docs

提交回复
热议问题