-3

I am trying to upload some of my projects to GitHub and I always see this error, you who think

enter image description here

Gilles Quénot
  • 173,512
  • 41
  • 224
  • 223
  • 2
    When you have text output, don't take a picture but copy paste the output in your POST https://unix.meta.stackexchange.com/questions/4086/psa-please-dont-post-images-of-text – Gilles Quénot Feb 19 '18 at 23:01

2 Answers2

1

tell you to pull modifications done by other(s), so :

git pull origin master
git push -u origin master
Gilles Quénot
  • 173,512
  • 41
  • 224
  • 223
0

When this occurs. You usually have two options.

  • Save the changes from origin, then push it again. In terminal, you do

    $ git pull origin master
    
  • Not to care the changes of origin, so type:

    $ git push -u origin master --force
    

    Then git will perform a force update. So your commits from local will be pushed.

In GitHub, this frequently happens if you both edit files in the remote and local. My suggestion is that if you use Git, you'd better not to use GitHub to edit files. Or you often need to force push

TravorLZH
  • 302
  • 1
  • 9