Confused by 'up-to-date' message in git workflow

Why does git say local master is up to date with origin/master when I can pull an update?

[rails-app (dev)]$ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
[rails-app (master)]$ git pull origin master
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 13 (delta 11), reused 0 (delta 0)
Unpacking objects: 100% (13/13), done.
From bitbucket.org:account-name/rails-app
 * branch            master     -> FETCH_HEAD
   2f2fcc0..b3e3bed  master     -> origin/master
Updating 2f2fcc0..b3e3bed
Fast-forward
 app/assets/stylesheets/application.scss | 7 -------
 app/mailers/reminder_mailer.rb          | 2 ++
 config/routes.rb                        | 2 --
 3 files changed, 2 insertions(+), 9 deletions(-)

  • Github Line Comments in Task Navigation IDEA IntelliJ
  • Getting Started with Git: Committing Changes Issue with VIM
  • Why my git is not updating from 1.7.1 to 1.9.4
  • Composer pulling latest commits on separate repos
  • Bash Script - String Split Paragraph Into Sentences
  • Error clone project gitlab with https
  • Best practices and issues on using git-tfs bridge
  • How to compare two revisions in Bitbucket?
  • Git revert merge plus one commit on top to re-merge again
  • GitHub OAuth2 Token: How to restrict access to read a single private repo
  • What's wrong with my Git alias
  • How to revert a file in Git that has been renamed
  • One Solution collect form web for “Confused by 'up-to-date' message in git workflow”

    Because origin/master is the “last known state” of the remote, not necessarily the current state of the remote. If you did git fetch first and then git status, you would see a message indicating that you are behind origin/master.

    Git Baby is a git and github fan, let's start git clone.