Git with centralized workflow -


i'm new git, , using centralized workflow, similar svn. i'd periodically know status compared central repo. example, if run following commands...

$ git clone git@github.com:centralrepo/test.git $ cd test; <make changes inside test/> $ git commit -a $ git pull 

...git pull says "already up-to-date". why doesn't git pull report changes, , if that's correct behavior, there way know local out of sync remote?

git pull fetch changes made in remote repository yours, equivalent svn update. however, not mention if there changes made @ end not on remote. can git fetch fetch updates remote without applying them workspace.

with recent versions of git (e.g. 1.7.2.3 here) git status print information see this, e.g.:

# on branch master # branch behind 'origin/master' 20 commits, , can fast-forwarded. 

this showing after did git fetch , means there changes waiting go workspace (applied doing git pull)

by contrast, if pull in , make , commit change locally, git status tells me:

# on branch master # branch ahead of 'origin/master' 1 commit. 

that is, have local changes can pushed remote. list them doing git log origin/master..


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -