How to push local changes to a remote git repository on bitbucket

前端 未结 4 1871
情歌与酒
情歌与酒 2020-12-22 15:57

I\'m testing out Git and Bitbucket.

I\'ve created a repository on Bitbucket and have created a local copy of the repo and I am committing files into it. I can\'t see

4条回答
  •  佛祖请我去吃肉
    2020-12-22 16:37

    Meaning the 2nd parameter('master') of the "git push" command -

    $ git push origin master
    

    can be made clear by initiating "push" command from 'news-item' branch. It caused local "master" branch to be pushed to the remote 'master' branch. For more information refer

    https://git-scm.com/docs/git-push

    where in

    [ […​]
    

    is written to mean "specify what destination ref to update with what source object."

    For your reference, here is a screen capture how I verified this statement.

提交回复
热议问题