##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:alexpchin/<reponame>.git
git push -u origin master
##Push an existing repository from the command line
git remote add origin git@github.com:alexpchin/<reponame>.git
git push -u origin master
I am not sure how I missed entering
"\"
in my earlier command.Here is the correct command:
curl -u Amruth-Smaragdine https://api.github.com/user/repos -d "{\"name\": \"testrepo\"}"
Extremely sorry for the confusion. Please accept my apologies.
In MS Windows the double quotes have to be shared with the help of a
"\"
, which is normally used for escape sequence in normal coding procedures.Reference Screenshots:
![GIT - Creation of Repo from Command Line in MS Windows 10](https://user-images.githubusercontent.com/67011082/85354356-01b24100-b528-11ea-9672-1374bcad17f1.png)
Note: I have identified something that I ignored earlier. In my earlier comment, I have not included the text with <> insert code option, hence the
"\"
was not getting previewed.Thanks a ton. You made me realize my mistakes.