问题一:$ git push origin master
To https://gitee.com/haiyangxie/LearningGames.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://gitee.com/haiyangxie/LearningGames.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
解决方法:
git pull --rebase origin master
问题二:
$ git push origin master
fatal: 'origin' 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.
解决方法:
git remote add origin https://gitee.com/haiyangxie/LearningGames.git