Advertisement
lamiastella

git fast forward

May 31st, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. Monas-MacBook-Pro:PythonCodes mona$ git remote add origin git@github.com:lamiastella/Python_Playground
  2. Monas-MacBook-Pro:PythonCodes mona$ git push -u origin master
  3. To git@github.com:lamiastella/Python_Playground
  4. ! [rejected] master -> master (fetch first)
  5. error: failed to push some refs to 'git@github.com:lamiastella/Python_Playground'
  6. hint: Updates were rejected because the remote contains work that you do
  7. hint: not have locally. This is usually caused by another repository pushing
  8. hint: to the same ref. You may want to first integrate the remote changes
  9. hint: (e.g., 'git pull ...') before pushing again.
  10. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  11. Monas-MacBook-Pro:PythonCodes mona$ git pull
  12. warning: no common commits
  13. remote: Counting objects: 3, done.
  14. remote: Compressing objects: 100% (2/2), done.
  15. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
  16. Unpacking objects: 100% (3/3), done.
  17. From github.com:lamiastella/Python_Playground
  18. * [new branch] master -> origin/master
  19. There is no tracking information for the current branch.
  20. Please specify which branch you want to merge with.
  21. See git-pull(1) for details
  22.  
  23. git pull <remote> <branch>
  24.  
  25. If you wish to set tracking information for this branch you can do so with:
  26.  
  27. git branch --set-upstream-to=origin/<branch> master
  28.  
  29. Monas-MacBook-Pro:PythonCodes mona$ git push -u origin master
  30. To git@github.com:lamiastella/Python_Playground
  31. ! [rejected] master -> master (non-fast-forward)
  32. error: failed to push some refs to 'git@github.com:lamiastella/Python_Playground'
  33. hint: Updates were rejected because the tip of your current branch is behind
  34. hint: its remote counterpart. Integrate the remote changes (e.g.
  35. hint: 'git pull ...') before pushing again.
  36. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  37. Monas-MacBook-Pro:PythonCodes mona$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement