Why is the branch behind his remote control?

Despite the fact that he pulled out of the remote master and said that everything is up to date, I can not click on the remote master, because the current branch is located at the end of the console. What?

$ git pull origin master From https://github.com * branch master -> FETCH_HEAD Already up-to-date. $ git push origin master 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 a pushed branch tip is behind its remote hint: counterpart. Check out this branch and integrate the remote changes hint: (eg 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. 
+6
source share
1 answer

You may be on a different branch. git checkout master and try.

+1
source

Source: https://habr.com/ru/post/969704/


All Articles