need clarification on pulling git branches

前端 未结 2 1519
南笙
南笙 2021-01-21 12:53

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

2条回答
  •  孤街浪徒
    2021-01-21 13:38

    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
    

提交回复
热议问题