git version 1.7.3.5 I have the following branches:
git branch image master * video I did some work at the office. And when I came home I always update on my home's notebook.
However, when I did a git remote show origin I get the following:
Local refs configured for 'git push': image pushes to image (up to date) master pushes to master (fast-forwardable) video pushes to video (local out of date) So I did a git pull for all of these branches:
git pull origin image git pull origin master git pull origin video When I do a git status on the video and image branch I get:
nothing to commit (working directory clean) When I do a git status on the master branch I get:
Your branch is ahead of 'origin/master' by 5 commits. Which I don't understand the following (fast-forwardable) and (local out of date)?
But in the git status for video it saids its up to date?
Do I need to push my master if it is ahead by 5 commits?
Many thanks for any suggestions
git log --stat --pretty=format:'%Cred%h%Creset - %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative origin/master..masterto get an impression about the difference.(fast-forwardable)means it is safe to push: branches have the same commits except one branch (localin your cases) has some additional commits on top.