Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git pull doesn't seem to work

Tags:

git

git-pull

Here's what I've done:

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 pull doesn't seem to work! This is the output 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 do I fix it?

like image 858
Pac Rauce Avatar asked Nov 30 '15 07:11

Pac Rauce


Video Answer


1 Answers

Pull is fine; you don't have any new updates from your remote server to add to your local machine.

What you do have are two commits that aren't on origin/master which you should look to push.

Use git push origin master while on master to rectify this issue.

like image 69
Makoto Avatar answered Oct 22 '22 18:10

Makoto