Even I dont know what has hanppened till now.
第一次用 Git 推送本地文件到 Github, 中途遇到很多问题,百度到我心累。
最后的最后,我甚至都不知道做了什么,这东西就好了。
大概就是撸码的真谛吧!
有时候我真的在想,代码世界应该都不是完整的吧?在我看来,数学是形成一个完整自洽的世界,而代码也类似,任何一种语言或者系统都有存在的bug,人们没有找到的或者极力规避但却无法解决或者避免的。
真是,想这么多,我又解决不了!粗菜淡饭的布衣在担心锦衣玉食的庙堂人物会不会治国无方?
白痴。
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$ git remote add origin https://github.com/ZewerLo/test_git_demo
fatal: remote origin already exists.
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$ git push -u origin master
fatal: protocol '–https' is not supported
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$ git remote
origin
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$ git remote rm origin
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$ git remote add origin https://github.com/ZewerLo/test_git_demo
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$ git push -u master
fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$ git push -u origin master
To https://github.com/ZewerLo/test_git_demo
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/ZewerLo/test_git_demo'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$ git pull --rebase origin master
warning: no common commits
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 15 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (15/15), done.
From https://github.com/ZewerLo/test_git_demo
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
First, rewinding head to replay your work on top of it...
Applying: readme.txt提交
Applying: readme.txt
Applying: 文件增加3333333333内容
Applying: 文件添加4444444444444内容
Applying: 一次性提交所有文件,包括test.txt文件
Applying: commit all file
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$ git push -u origin master
Enumerating objects: 26, done.
Counting objects: 100% (26/26), done.
Delta compression using up to 8 threads
Compressing objects: 100% (17/17), done.
Writing objects: 100% (25/25), 1.88 KiB | 321.00 KiB/s, done.
Total 25 (delta 7), reused 0 (delta 0)
remote: Resolving deltas: 100% (7/7), done.
To https://github.com/ZewerLo/test_git_demo
69278f5..f42945f master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Lo@DESKTOP-J203ED1 MINGW64 /d/Python_work/Python编程从入门到实践1-11章代码 (master)
$