2012-10-12 16 views
14

私は自分のローカルマシンにFacebookアプリケーションを持っていて、もう1つはHerokuで作成しました(HerokuアプリケーションのコードはHerokuによって自動的に作成されました)。私はHerokuアプリケーション内のコードをローカルマシンのコードに完全に置き換えたいと思います。コードがあるマシンのディレクトリにgitリポジトリをすでに初期化してあり、URLをgit remote add origin [email protected]:my-fb-app.gitに設定しました。私はgit push origin masterに入力するときしかし、私が取得:gitリポジトリのコードを完全に置き換える方法

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. 

明らかに、これは正しいアプローチではありません。これを行うにはどうしたらいいですか?

答えて

関連する問題