Git

remote와 local에서의 workflow

dm.kim 2020. 9. 22. 10:43

Basic

remote master (pull request)-> remote mybranch

remote mybranch (pull)-> local master(or other branch) : git pull origin(repo) {remotebranchname}:{localbranchname}

local master(or other branch) (push)-> remote mybranch : git push origin(repo) {localbranchname}:{remotebranchname}

remote mybrach (pull request)-> remote master

 

git pull origin branchname 하면 local에 새로운 브랜치가 생성되는 것이다.(remote의 해당 branch를 pull 하는 것이 아니다.)