Merge workflow(git-push, git-fetch, git-pull)
Merge workflow
The merge workflow works by copying branches between upstream and downstream. Upstream can merge contributions into the official history; downstream base their work on the official history.
There are three main tools that can be used for this:
- git-push[1] copies your branches to a remote repository, usually to one that can be read by all involved parties;
- git-fetch[1] that copies remote branches to your repository; and
- git-pull[1] that does fetch and merge in one go.
Note the last point. Do not use git pull unless you actually want to merge the remote branch.
워크플로 병합
병합 워크플로는 업스트림과 다운스트림 간에 분기를 복사하여 작동합니다. Upstream은 기여를 공식 기록에 병합할 수 있습니다. 하류는 공식 역사에 대한 작업을 기반으로 합니다.
이를 위해 사용할 수 있는 세 가지 주요 도구가 있습니다.
- git-push[1]는 일반적으로 관련된 모든 당사자가 읽을 수 있는 원격 저장소에 브랜치를 복사합니다.
- 원격 분기를 저장소에 복사하는 git-fetch[1] ; 그리고
- 가져오기와 병합을 한 번에 수행하는 git-pull[1] .
https://git-scm.com/docs/gitworkflows
Git - gitworkflows Documentation
As a general rule, you should try to split your changes into small logical steps, and commit each of them. They should be consistent, working independently of any later commits, pass the test suite, etc. This makes the review process much easier, and the h
git-scm.com