Git push everything to new origin

前端 未结 4 618
眼角桃花
眼角桃花 2021-02-02 08:56

I deleted my previous git origin, and created a new one. I did git add . and git commit. But it will update changes, how do i push everything into the new origin

4条回答
  •  借酒劲吻你
    2021-02-02 09:06

    (works with git 1.8.4)

    If you want to push all branches at once:

    git push  --all
    

    To push all the tags:

    git push  --tags
    

提交回复
热议问题