我以为我知道所有这一切,但没有任何效果。从命令行中,我克隆了一个GitHub存储库。很好。
但是现在我想将其备份,包括我添加的文件。我怎么做? “ git add”和“ git push”似乎没有任何作用。
这是我尝试过的很多东西
C:\git\ColoradoBallot>git push origin master
fatal: HttpRequestException encountered.
An error occurred while sending the request.
Username for 'https://github.com': david@windward.net
Password for 'https://david@windward.net@github.com':
Everything up-to-date
C:\git\ColoradoBallot>git add
Nothing specified, nothing added.
Maybe you wanted to say 'git add .'?
C:\git\ColoradoBallot>git add .
C:\git\ColoradoBallot>git push origin
fatal: HttpRequestException encountered.
An error occurred while sending the request.
Username for 'https://github.com': david@windward.net
Password for 'https://david@windward.net@github.com':
Everything up-to-date
C:\git\ColoradoBallot>
答案 0 :(得分:0)
这是在GitHub中推送文件的步骤:-
git add .
git commit -m "Enter your message"
git push origin <branch_name>