Why do I need to explicitly push a new branch?

前端 未结 8 1550
遥遥无期
遥遥无期 2020-11-22 00:48

I am new in git and I am practicing. I created a local branch but I saw that when I did git push my branch was not uploaded to the repository. I ha

8条回答
  •  别那么骄傲
    2020-11-22 01:28

    At first check

    Step-1: git remote -v
    //if found git initialize then remove or skip step-2

    Step-2: git remote rm origin
    //Then configure your email address globally git

    Step-3: git config --global user.email "youremail@example.com"

    Step-4: git initial

    Step-5: git commit -m "Initial Project"
    //If already add project repo then skip step-6

    Step-6: git remote add origin %repo link from bitbucket.org%

    Step-7: git push -u origin master

提交回复
热议问题