The local connection is GitHub's remote library.

Source: Internet
Author: User
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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.