2017-02-24 83 views
1

我已經提交了一個標籤應用程序項目,由我們的講師設置的課堂回購。Ionic 2和github

我改變了主意,然後想要開始一個空白的應用程序。

現在我似乎有兩個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 

將由您可以選擇本地的一個替代遠程主的歷史。