У меня есть приложение Facebook на моей локальной машине, а другое - с Heroku (код в приложении Heroku был создан автоматически Heroku). Я хотел бы полностью заменить код в приложении Heroku кодом на моей локальной машине. Я уже инициализировал репозиторий git в каталоге на моем компьютере, где находится код, и я установил URL с git remote add origin [email protected]:my-fb-app.git
. Однако, когда я набираю git push origin master
, я получаю:
To [email protected]:my-fb-app.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:blooming-cove-5867.git'
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.
Очевидно, что это неправильный подход. Как мне это сделать?