First, please forgive this post. I am very new to git and git flow and there are many things about this whole package that I don't know about or don't know how to find the answers to. I don't know where the gaps in my knowledge are and, thus, have no idea what I'm looking for.
What's the workflow for cloning an existing repo and pulling down changes?
Say for example I have some repo 'foo'
foo has the following branches
master
develop
feature/foo
feature/bar
I clone the repo...
git clone <prefix>/user/foo
and now I have a bare repository with just the head branch checked out (I think). What's the proper procedure to turn on git flow? Since git flow config info isn't stored on the server, git flow repos have to be initialized. But if I just run git flow init, I run into problems since there's no master branch and no develop branch or any of the other branches. So what do I do? What's the proper workflow here?
I see on the git flow cheat sheet that all I need to do to get a feature branch is git flow feature pull <featurename>. I was under the impression that was all that was needed for a cloned repo to come up to speed was to git flow init and then git flow feature pull <featurename> but apparently there's a LOT more to it than that. Can anyone fill me in on the details? How would I go about, say, pulling down feature/foo from a freshly cloned repo?