I have a file on Github that I want to update, as I have added new stuff to my local file. I did the git add, commit, & push origin master. The add & commit worked fine but push origin master is not working.
This is what I get when I try to do push origin master:
$ git push origin master
To https://github.com/AhmaadJ/ChatBot-Lite.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/AhmaadJ/ChatBot-Lite.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.
I did git pull, than did some stuff that I also found online for similar problems, & I got a merge conflict. I aborted the merge, & checked the status, log, & remote to see what is the problem.
Here's what status brought up:
$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 3 and 3 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working tree clean
Should I undo my latest commit? If so, how?
I'll also link pictures of the code below:
Pictures Contain:
-Drawing Diagram
-Pull, Branch, Merge Abort
-Log, Status
-Log, Pull, Status
-Status, Log, Branch, Remote -v