git init will not create git directories for me

后端 未结 8 1375
北荒
北荒 2020-12-31 19:06

I am new to Git. I can get a Git directory structure in a bare directory with git -init --bare. I can see where the git information is stored.

However, w

8条回答
  •  我在风中等你
    2020-12-31 19:43

    I am ultimately attmepting to create remote and local repositories completely from scratch. These are the commands I've used. If anyone has suggestions I'd gladly hear them.

    cd C:\Users\JimPC\Documents\pretendCloud

    git init --bare Project1

    cd C:\Users\JimPC\Documents\MyJava

    git clone C:\Users\JimPC\Documents\pretendCloud\Project1 Project1

    cd Project1

    dir >File01.txt

    git add File01.txt

    git commit -m "Initial State Commit"

    git push -u origin master

    After these commands, I believe I am ready to continue building my project on the master branch.

提交回复
热议问题