My question is why does the answer by @Rich in this SO post work?
I am running git version git version 1.7.1 and have a bare git repository, and keep a development and production environment updated by committing and pushing development changes to the remote ics_client.git
and then git pull
-ing those changes down to the production system.
After pulling the changes down to the production environment, I see output like the following (in the following example, I tried git fetch
followed by git merge FETCH_HEAD
, but got the same message as with a git pull
.
[ics@bucky ics_client]$ git fetch origin master
gituser@h2oamr's password:
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 5), reused 0 (delta 0)
Unpacking objects: 100% (7/7), done.
From h2oamr:ics_client
* branch master -> FETCH_HEAD
[ics@bucky ics_client]$ git merge FETCH_HEAD
Updating 59a2f6a..05f8d8b
Fast-forward
Reports.mf | 5 +-
fgiusr.c | 354 ++++++++++++++++++++++++++++----------------------------
rangebatch.4gl | 52 +++++++-
3 files changed, 225 insertions(+), 186 deletions(-)
[ics@bucky ics_client]$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
nothing to commit (working directory clean)
So, is this a normal part of git? Am I doing something wrong?