0

This is my first official Stack Overflow question, because I am really STUCK! I can't seem to push my source code to my remote GitHub repository.

screen shot of terminal commands not working

What am I missing!?!?!

isherwood
  • 46,000
  • 15
  • 100
  • 132
  • Please see https://stackoverflow.com/help/how-to-ask. We don't really work from screen shots around these parts. – isherwood Apr 02 '21 at 13:42
  • But the instructions are there in the hint block: You need to pull before you can push. – isherwood Apr 02 '21 at 13:44
  • haha! no screen shots next time. the instructions in my textbook dont mention push but I felt that I was missing something ..... – Laura Ristoff Apr 02 '21 at 13:45

1 Answers1

0

You can override any checks that git does by using "force push". Use this command in terminal

git push -f origin master

However, you will potentially ignore the existing work that is in remote - you are effectively rewriting the remote's history to be exactly like your local copy.

Silikhe
  • 11
  • 2