2

I cloned a directory with git clone --depth=1 https://github.com/reactjs/react-router/.

I saw that the repo was updated on github, Now I'd like to pull to latest. I git pull, but nothing happened.

On another question in SO, I saw there's no way to do this prior to 2.x.x, but no mention how to after that version. I am on git version 2.7.2.windows.1.

How can I checkout the latest commit, without cloning from scratch?

wildeyes
  • 6,767
  • 5
  • 19
  • 37
  • Related: [How to git fetch efficiently from a shallow clone](http://stackoverflow.com/questions/19352894/how-to-git-fetch-efficiently-from-a-shallow-clone) (but mind the age of some of the answers) – poke Aug 11 '16 at 06:56
  • @poke that answer only talk about `git clone` paired with `--depth`, nothing about changing the depth afterwards, but thanks. – wildeyes Aug 11 '16 at 06:58
  • Can you check if the issue persists with git 2.9.2? https://github.com/git-for-windows/git/releases – VonC Aug 11 '16 at 07:30
  • @VonC Yes, it does. "Current branch mastesr is up to date." – wildeyes Aug 11 '16 at 07:37

1 Answers1

0

I git pull, but nothing happened.

That should mean no new commit is to be pulled from the remote repo.

You can check that with git ls-remote and compare its output with git log -1

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250