F: \ OpenServer \ domains \ workbook.loc (master) λ git remote add origin https://github.com/pepelxD/works-cloud.git

F: \ OpenServer \ domains \ workbook.loc (master) λ git remote -v origin
https://github.com/pepelxD/works-cloud.git (fetch) origin
https://github.com/pepelxD/works-cloud.git (push)

F: \ OpenServer \ domains \ workbook.loc (master) λ git push -u github
master fatal: 'github' git repository fatal:
Could not read from remote repository.

Please make sure you have the repository exists.

Next, do this:

F: \ OpenServer \ domains \ workbook.loc (master) λ git push origin master
Counting objects: 15, done. Delta compression using up to 4 threads.
Compressing objects: 100% (13/13), done. Writing objects: 100%
(15/15), 3.29 KiB | 0 bytes / s, done. Total 15 (delta 0), reused 0
(delta 0) To https://github.com/pepelxD/works-cloud.git
7403f85..8d96036 master -> master

F: \ OpenServer \ domains \ workbook.loc (master) λ git push
fatal: The current branch master has no upstream branch. To push the current
branch and set up

git push --set-upstream origin master 

F: \ OpenServer \ domains \ workbook.loc (master) git push - set-upstream origin master
Branch master set up to track remote branch master from
origin. Everything up-to-date

F: \ OpenServer \ domains \ workbook.loc (master) git push Everything up-to-date

Can someone explain what it was then?

  • Maybe you need git push -u origin ? - Yuriy SPb
  • @ YuriySPb the same trouble - pepel_xD
  • What is github on your command line? - 0andriy
  • @ 0andriy, The next command will put all the changes that were made in the local repository on Github. git push -u github master The -u switch is used to establish a connection between the remote github repository and your master branch. You can transfer all further changes to a remote repository with a simplified command. - pepel_xD
  • Well, you do git remote add origin when git remote add github implied. Поэтому git push -u github does not work. - 0andriy

0