I have created a git repository locally, as shown below
doudo@LAPTOP-P5H3MDKN MINGW64 /d/software/java/java_work/DataStruct/DataStructureAndAlgorithm (master)
$ git push origin master
error: src refspec master does not match any
error: failed to push some refs to 'github.com:douzhenjun/DataStruct.git'
doudo@LAPTOP-P5H3MDKN MINGW64 /d/software/java/java_work/DataStruct/DataStructureAndAlgorithm (master)
$ git branch
doudo@LAPTOP-P5H3MDKN MINGW64 /d/software/java/java_work/DataStruct/DataStructureAndAlgorithm (master)
$ git push --set-upstream origin master
error: src refspec master does not match any
error: failed to push some refs to 'github.com:douzhenjun/DataStruct.git'
I have added remote orgin repository on github,
but when I attempt to push cotents to remote origin, fatals above occurs. Moreover, I have built a new branch named dou and ever switched to it, but I can't switch again to master. This branch(named master) is what I rebuilt, when I key in command git branch, there is nothing to see. Why is it ?
doudo@LAPTOP-P5H3MDKN MINGW64 /d/software/java/java_work/DataStruct/DataStructureAndAlgorithm (master)
$ ll -a
total 29
drwxr-xr-x 1 doudo 197121 0 Apr 20 13:52 ./
drwxr-xr-x 1 doudo 197121 0 Apr 16 2021 ../
drwxr-xr-x 1 doudo 197121 0 Apr 20 20:26 .git/
drwxr-xr-x 1 doudo 197121 0 Apr 4 14:21 .idea/
-rw-r--r-- 1 doudo 197121 455 Jun 22 2020 DataStructureAndAlgorithm.iml
drwxr-xr-x 1 doudo 197121 0 Aug 30 2020 out/
drwxr-xr-x 1 doudo 197121 0 Apr 19 21:05 src/