How to push changes to branch?

前端 未结 3 1290
再見小時候
再見小時候 2021-01-05 07:36

Can you explain me how to use git in case, when I have access to repository:

  • How to download repository
  • How to push changes in selected branch
3条回答
  •  悲哀的现实
    2021-01-05 08:09

    How to download repository

    # download a repository
    git clone 
    

    How to push changes in selected branch

    # push changes to remote branch
    # assuming you are on the master branch right now
    git push origin master
    

    How to select branch to push

     # push any desired branch to remote
     git push -u origin local_branch_name:remote_branch_name
    

提交回复
热议问题