Git pulls not working

Here is what I did:

git fetch origin
git checkout master
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 2 commits.
git pull
Already up-to-date.

But git pullit doesn't seem to work! This is the result that I get when I try git checkout master:

git checkout master
Already on 'master'
Your branch is ahead of 'origin/master' by 2 commits.

Why is this? How to fix it?

+4
source share
1 answer

Pull fine; You do not have new updates from the remote server to add to the local computer.

You have two commits that are not on origin/masterthat you should be looking for.

Use git push origin masterwhen this problem is fixed on the host computer.

+5
source

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


All Articles