problem
Geek lee@geeklee-pc MINGW64 ~/learngit (Master)
$ Git push-u Origin master
fatal: ' Origin ' does not appear to Be-a git repository
fatal:could not read from remote repository
. Please make sure the correct access rights and the
repository exists.
Solve
geek lee@geeklee-pc MINGW64 ~/learngit (master) $ git remote add Origin Git@github.com:geek-lee /learngit.git Geek lee@geeklee-pc MINGW64 ~/learngit (master) $ Git push origin master the authenticity of host ' GITHUB.C
Om (192.30.253.113) ' can ' t be established.
RSA key fingerprint is sha256:nthbg6kxupjwgl7e1igocspromtxdcarlvikw6e5sy8. Is you sure want to continue connecting (yes/no)?
Yes warning:permanently added ' github.com,192.30.253.113 ' (RSA) to the list of know N hosts.
Counting objects:20, done.
Delta compression using up to 4 threads.
Compressing objects:100% (16/16), done. Writing objects:100% (20/20), 2.22 KiB |
0 bytes/s, done.
Total (delta 5), reused 0 (Delta 0) remote:resolving deltas:100% (5/5), done. To Git@github.com:geek-lee/learngit.git * [New branch] master, Master Geek lee@geeklee-pc MINGW64 ~/learngit ( Master) $
Why plus-U is not successful.
Liao is because the remote library is empty, when we first pushed the master branch, with the-u parameter, git will not only push the local master branch content of the remote new Master branch, but also the local master branch and the Remote Master Branch Association, You can simplify the command at a later push or pull. From now on, as long as the local commits, you can go through the command: Git push origin master pushes the latest modification of the local master branch to GitHub, and now you have a truly distributed repository.
I may be the original there is something.
It is highly recommended that Liaoche's git and GitHub tutorials, which I have also learned, focus on .... Chinese version. Lively and interesting, easy to understand.
[Liao da git tutorial]
(http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000)