I am used to using SVN and only recently switched to GitHub.
I am trying to update some files in a GitHub repo, but I get this message:
To https://github.com/.../
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/.../'
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 have tried commands like git fetch origin
and git pull
, but none of these make it so my current branch is not behind.
In SVN I'd just do svn update
and then commit my changes.
I've also tried git pull origin
, but I get a strange text message popping up and I have no idea how to interface with it: Updating a local repository with changes from a Github repository