I always struggle with pulling git branches and never get it right. I am a solo user here. My work flow is create master and dev-stage1, dev-stage2, push code to origin and then
To setup an existing repository for a push/pull against a remote repository.
CD into the directory where you did:
git init
And then run:
git remote add origin https://url/to/your/repository.git git push -u origin master