How to push changes to branch?

前端 未结 3 1280
再見小時候
再見小時候 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:11

    First i would like to suggest you to read this nice documentation.

    Prerequirements:
    - Installed git.
    - Have access to the repository.

    1. You can download repository following these commands:
      git clone

    2. First you need to add changes, create commit, add remote branch and then push.
      git remote add
      Example if you use BitBucket: git remote add origin ssh://git@bitbucket.org//.git
      git status // to see all changes (they should be printed with red color)
      git add // add the file as git staged
      git commit or git commit -m 'some message'
      git push

提交回复
热议问题