2016-07-21 5 views
0

データをリモートリポジトリにプッシュしようとしています。丸で囲み続けてください。 私は私を抱きしめている小さな間違いをしたと思う。GitHubとの同期に関する問題

[email protected] MINGW64 ~/DataScience (master) 
$ git push --set-upstream origin master 
To https://github.com/adkin1988/datasciencecoursera.git 
! [rejected]  master -> master (non-fast-forward) 
error: failed to push some refs to 'https://github.com/adkin1988/datasciencecoursera.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. 

[email protected] MINGW64 ~/DataScience (master) 
$ git pull 
There is no tracking information for the current branch. 
Please specify which branch you want to merge with. 
See git-pull(1) for details. 

    git pull <remote> <branch> 

If you wish to set tracking information for this branch you can do so with: 

    git branch --set-upstream-to=origin/<branch> master 
+0

'git pull origin master'の後に' git push'を実行しましたか? – ganesshkumar

答えて

0

現在のローカルブランチに関連するリモートブランチを定義する必要があります。貼り付けたコードの最後の行を見てください

関連する問題