2017-02-24 9 views
1

私は講師が設定した教室レポにタブアプリプロジェクトをコミットしました。Ionic 2とgithub

私は気が変わり、空のアプリから始めたいと思っています。

今私は2つのmasterブランチがあり、最初のものを削除する必要があるようです。
プッシュは、次のエラーメッセージをトリガー:

error-- ! [rejected]  master -> master (non-fast-forward) 
error: failed to push some refs to 'https://github.com/xxxxxxxxx/2nd-year-software-ionic-2-assignment-xxxxxxxx.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. 

は、どのように私は、そのエラーメッセージを乗り越えることができますか?

答えて

0

あなたがする必要があるのは、プッシュ強制です:

git push --force -u origin master 

ローカルに持っているいずれかでリモート・マスターの歴史を置き換えます。