Git

초급 06. Push와 Pull

· 1min read · 1 views

 

Push

git push -u origin feature/login

처음 Push할 때 -u를 사용하면 Local Branch와 Remote Branch의 tracking 관계가 설정됩니다.

이후에는 일반적으로:

git push

만 사용할 수 있습니다.

 

Pull

git pull

Pull은 개념적으로 Remote 변경을 가져오는 Fetch와 이를 현재 Branch에 반영하는 Merge 또는 Rebase의 조합입니다.

 

Fetch와 비교

git fetch origin

Fetch는 Remote 정보를 가져오지만 현재 작업 Branch에 자동으로 합치지 않습니다.

Related Docs

Comments (0)

No comments yet. Be the first to comment!

Leave a Comment

로그인 후 댓글을 남길 수 있습니다.