我们正在使用 git 进行版本控制,现在我们在尝试上传最新版本时收到很多警告。我是 git 新手,对限制没有耐心,有没有办法删除所有内容并上传当前版本?
这是我现在尝试上传时得到的。
$ git push origin master
Username for 'https://code.google.com':
Password for 'https://<removed>@code.google.com':
To https://code.google.com/p/<removed>/
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://code.google.com/p/<removed>/'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.