1. To https://github.com/kongq/springcloud.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/kongq/springcloud.git'
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.
git push -f
2. To https://github.com/kongq/springcloud.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/kongq1983/springcloud.git'
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.
git pull
3. git remote add origin https://github.com/kongq/springcloud.git
fatal: remote origin already exists.
git remote rm origin
4.
To https://github.com/kongq/kqspring.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/kongq/kqspring.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 -u origin master