When I do git pull origin master, it does not seem to update the files in the folder of the git repository.
A:
You can haz gremlinz.
git-pull
is supposed to fetch the remote changes and merge them into the current branch.
To verify that the changes have been merged, do git log
to verify that the revisions that you are expecting are in your local branch.
From git-pull
doco:
Merge into the current branch the remote branch next:
$ git pull origin next
Igor Zevaka
2010-04-13 23:33:42
A:
A few suggestions,
Try a git pull -v origin master
to see if the verbose version produces any clue.
If you can clone your repo and get it in a state before any git pull
:
- Check if the git pull you just did introduced any changes:
current=`git rev-parse HEAD` git pull origin git diff $current..
- try a
git fetch origin master
, which is equivalent to "git fetch origin master:
", not to "git fetch origin master:master
" (i.e.: it stores fetched value of 'master
' branch (of remote 'origin
') inFETCH_HEAD
, and not in 'master
' branch or remote-tracking 'remotes/origin/master
' branch.
That means you can try and detect if any changes are to be introduced by that fetch:
git diff ...FETCH_HEAD
VonC
2010-04-14 01:21:12
A:
Maybe you didn't make any change to the remote (or who ever maintains it didn't update it).
Maybe you have more than one remote and you're confused about which one pull
is supposed to fetch form.
hasen j
2010-04-14 02:02:20