Is a git fetch necessary before git subtree pull? -


i in reference following article: git subtree blog entry.

amongst other, following commands listed:

git remote add -f tpope-vim-surround https://bitbucket.org/vim-plugins-mirror/vim-surround.git git subtree add --prefix .vim/bundle/tpope-vim-surround tpope-vim-surround master --squash git fetch tpope-vim-surround master git subtree pull --prefix .vim/bundle/tpope-vim-surround tpope-vim-surround master --squash 

my question is:

what need git fetch tpope-vim-surround master?
not redundant git pull listed next line below?

i believe fixed recently, older versions of git subtree required branch correct name present locally before fetch remotely, or fail "foo not refer commit."

so it's compatibility that.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -